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

Artifact.condition ignores imports

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Out of scope
    • Affects Version/s: 1.1.0
    • Fix Version/s: 1.3.0
    • Labels:
      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

              Assignee:
              jbornema Joerg Bornemann
              Reporter:
              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