Uploaded image for project: 'Qbs ("Cubes")'
  1. Qbs ("Cubes")
  2. QBS-412

Artifact.condition ignores imports

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Out of scope
    • Icon: P2: Important P2: Important
    • 1.3.0
    • 1.1.0
    • None

      Consider the following module

      import "../utils.js" as ModUtils
      
      Module {
          Rule {
              Artifact {
                  condition: ModUtils.moduleProperty(product, "foo")
              }
          }
      }
      

      Even though no error is emitted (bug 1) the condition will always be false, because ModUtils is not visible there (bug 2).

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            jbornema Joerg Bornemann
            jbornema Joerg Bornemann
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes