You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildstream.apache.org by tv...@apache.org on 2022/07/22 05:28:22 UTC

[buildstream] 01/03: _project.py: Allow option conditional resolution at project toplevel.

This is an automated email from the ASF dual-hosted git repository.

tvb pushed a commit to branch tristan/resolve-conditionals-project-root
in repository https://gitbox.apache.org/repos/asf/buildstream.git

commit bb42fa01415241b46292dcb5cbfbccd08f31f92a
Author: Tristan van Berkom <tr...@codethink.co.uk>
AuthorDate: Fri Jul 22 14:15:11 2022 +0900

    _project.py: Allow option conditional resolution at project toplevel.
    
    There are some early loaded essentials which do not support option
    conditionals, like the declaration of options, declaration of plugins,
    project name cannot be optional, etc.
    
    However generally speaking after the essentials have been parsed out
    the options should be resolved with this.
    
    Fixes #1683
---
 src/buildstream/_project.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/buildstream/_project.py b/src/buildstream/_project.py
index 62956ee4b..31c0f963a 100644
--- a/src/buildstream/_project.py
+++ b/src/buildstream/_project.py
@@ -646,6 +646,7 @@ class Project:
                 "source-caches",
                 "junctions",
                 "(@)",
+                "(?)",
             ]
         )