-
Notifications
You must be signed in to change notification settings - Fork 19
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
Fix PANTS_SHA install caching. #174
Conversation
I don't know of a good way to test this. Manually tested of course, but ensuring the result is cached requires poking at internals or turning off the network. |
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.
I don't know of a good way to test this.
In what context is the PANTS_VERSION_PROMPT_SALT
available?
Two subsequent runs should have the same salt when this works, right?
Only when no Pants version is supplied (via pants.toml, PANTS_VERSION or PANTS_SHA)
They should have no PANTS_VERSION_PROMPT_SALT env var set at all, that was the bug. That's a very direct test of internals that doesn't do much though. I'm hoping for an IT, something that actually tests a back slide robust to details. |
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.
Thanks!
Re: testing: yea, had the same realization for #172. I'm not sure what to do about that... maybe a Pants plugin which reports some details of the invoke? But it would be a big abstraction leak for any of that information to actually be exposed to plugins, so...
Oh right. Yea, in my mind it merely changed the value. Guess an IT would have to capture network traffic or something like that maybe in order to detect the side-effect of using PANTS_SHA or not. Feels like a lot of work for a relatively small feature. |
Fixes #173