-
Notifications
You must be signed in to change notification settings - Fork 510
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
Constants overwrite environment #2448
Comments
Thanks for the report! This is definitely a bug. Constants are supposed to be |
Ahh, okay, do you have |
Fixed in #2449! |
The purpose of these constants, by the way is, with the |
While testing some recipes that rely on environment variables
being the simplest example I can use I unexpectedly encountered
Curious as to where these came from I eventually tracked them down -- not to some tool that was part of my normal environment set up but to
just
internals added in ##2054just
being able to provide constants is, I suppose, fine (though why these merit a special definition is unclear; HEXLOWER and HEXUPPER seem superfluous to me and I wonder what slippery slope of constants may be injust'
s future). Exportingjust
constants to recipes seems like a surprise waiting to happen, however. Under the current implementation, if the project environment I set up happens to use one ofjust
's current or future constants then the result ofset export
is that my expected environment gets over-ridden in those cases. Future additions tojust
constants causing changed recipe execution is the scenario I anticipate.Possible alternatives:
set export
creates; orset export-constants
orset export-no-constants
for users who want/don't want that.I don't know how easy any of those would be given rust's apparent OnceLock implementation. At the least, in my opinion,
just
's documentation on Constants should mention that these overwrite other environment definitions, and that users can overridejust
"constants" with variable definitions if necessary.The text was updated successfully, but these errors were encountered: