harrysarson opened a new issue, #2006:
URL: https://github.com/apache/buildstream/issues/2006
If I have in my `project.conf`
```
options:
option_name:
type: bool
description: ''
default: false
variable: option-variable
elements:
some_plugin:
(@): includes/some_plugin.yml
```
and in `includes/some_plugin.yml`
```
config:
some_config: '%{option-variable}'
```
and then the plugin does
```
print(f"config was {node.get_str('some_config')}")
node.get_bool("some_config")
```
then resolving elements fails with an error message along the lines of
```
16:26:00 --:--:-- main:core activity START
Build
16:26:01 --:--:-- main:core activity START
Loading elements
16:26:01 00:00:00 main:core activity SUCCESS
Loading elements
16:26:01 --:--:-- main:core activity START
Resolving elements
config was 0
16:26:02 00:00:00 main:core activity FAILURE
Resolving elements
16:26:02 00:00:01 main:core activity FAILURE
Build
includes/some_plugin-conf.yml [line 8 column 42]: Value of 'some_config' is
not of the expected type 'bool'
```
I.e. the variable ends up being `0` rather than `false` which makes
`node.get_bool` fail.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]