-
-
Notifications
You must be signed in to change notification settings - Fork 638
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
List typed config values can not be merged between multiple config files (PANTS_CONFIG_FILES) #14679
Comments
Some more examples:
|
Merging from env seems to work:
|
FWIW this also works:
|
OK, I can reproduce this at HEAD, and it's definitely a bug. |
It appears to be a bug in the options system (!) not specifically in the docker subsystem. |
Yes, I experience the same thing with |
This appears to be working as intended in some sense, but only because we didn't think of this case, apparently. |
As intended? I thought the point of |
That works across defaults/env vars/config/flags, but the current semantics of multiple config files is that later files override the values in earlier files, so that only one value per set of config files is presented to the options system. But the fact that you expected it to work differently, and I did too (and I wrote the options system back in the day) tells me that the existing logic is not good. |
The complication is that we parse config files before we know the type of the option, going to have to think about what to do here. |
Thanks for the explanation. Makes sense. Another use case/motivation:
|
I guess one potential short term workaround is to move away from |
Unassigning myself, due to
|
Fixes pantsbuild#14679 [ci skip-rust] [ci skip-build-wheels]
Fixes pantsbuild#14679 [ci skip-rust] [ci skip-build-wheels]
Fixes pantsbuild#14679 [ci skip-rust] [ci skip-build-wheels]
Fixes pantsbuild#14679 [ci skip-rust] [ci skip-build-wheels]
Fixes pantsbuild#14679 [ci skip-rust] [ci skip-build-wheels]
Fixes pantsbuild#14679 [ci skip-rust] [ci skip-build-wheels]
@mpcusack-color thanks for reporting this! It's now fixed in #14850 which will go into Pants 2.12.0. Note that with the fix, putting just the add/remove values in a @fromfile works as you'd expect. |
We could probably also cherry-pick it to |
It builds on a bunch of other changes, so it might be complicated to cherry-pick |
Yea, I guess that more has landed since |
Describe the bug
Originally asked in https://pantsbuild.slack.com/archives/C046T6T9U/p1646199988870439
No matter the syntax I am unable to get docker build args list merging to work.
Pants version
2.9.0
OS
Linux
Additional info
pants.toml
:pants.ci.toml
:Dockerfile
:Running in CI:
The text was updated successfully, but these errors were encountered: