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

Artifact.condition ignores imports

    XMLWordPrintable

Details

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

    Description

      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).

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes