-
Notifications
You must be signed in to change notification settings - Fork 274
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
0.13: [Bug]: Octal configuration values interpreted as decimal in Bonsai #4929
Comments
We are using the YAML 1.1-style notation in our docs: https://docs.garden.io/guides/code-synchronization#permissions-and-ownership |
Thank you @porterchris for bringing this to our attention. |
Hi, this is issue is effectively blocking us from using
Updating the values to the format
|
@jghowe @porterchris Since 0.13.16 we support YAML document markers for YAML 1.1 compatiblilty: Add these two lines to the beginning of the garden.yml file:
With this marker, 0.13 will correctly parse In Garden 0.12 and prior versions of 0.13 this marker has no effect; 0.12 only supports YAML 1.1. With this marker, you can gradually move to 0.13 by supporting both 0.12 and 0.13 with the same configuration file. Once you are fully done with the migration and everyone uses 0.13, you can remove the marker and use the YAML1.2-style octal numbers ( This ticket will be closed once we updated the Bonsai migration guide with this information. |
YAML marker support was introduced in #4889 when we switched from using |
Garden Bonsai (0.13) Bug
Current Behavior
YAML 1.1-style octal values (e.g.
0777
) are interpreted as decimal in Bonsai configuration.Expected behavior
Garden should either mention changes in octal value parsing in the Bonsai migration guide, or interpret both
0777
and0o777
as octal values.Reproducible example
In the
main
branch, apply this patch:then,
cd examples/build-dependencies/frontend
and rungarden validate
:Workaround
Use YAML 1.2-style octal notation (e.g.
0o777
)Suggested solution(s)
I'm not sure; Did we update our YAML library in the mean time and it now uses the updated 1.2 spec? Can we instruct it to continue to interpret the outdated notation as octal numbers?
Additional context
This issue surfaced with the stricter validation in #4824
Your environment
garden version
The text was updated successfully, but these errors were encountered: