-
Notifications
You must be signed in to change notification settings - Fork 11
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
Loosen constraint on int vs number type check #413
Conversation
Can you show a repro here? Pulumi YAML pulumi-yaml/pkg/pulumiyaml/config/config.go Lines 142 to 144 in 55d4ae7
|
Ah right but |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not all numbers are integers, so I don't love this fix. I think a repro would be helpful in root causing this.
The |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be possible to add some tests here, both for correctness and to act as documentation for how the type coercion is supposed to work (int&float = float, int&int = int, int&string=!ok, ...)?
Fixes
pu/templates
pulumi/templates#465Since the project-level
config
block supportsinteger
but notnumber
, we can loosen the type check constraint for now untilconfiguration
is fully deprecated