-
Notifications
You must be signed in to change notification settings - Fork 43
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
writeScript
- $PATH
inheritance issue
#381
Comments
writeScript
- $PATH
inheritance issue
@blaggacao was the original author here iirc. Do you perhaps remember why you did this? Was it intentional? |
Hi, I think it is good, because the base image can be any docker e.g. alpine (the binary from base image can be use) |
We could consider this a bug on the grounds of your reasoning, yes. I don't actually think that this had been a conscientious decision to inherit the environment's Happy to merge a patch.
The operable was designed to be as close to a complete runtime just short of being an OCI image or having a special root mount, so that it can run in any environment / root mount. So in terms of runtime dependencies, they should be brought with it. |
I recently discovered that the operable script in your library is not as pure as expected because it inherits the $PATH from the running system. While this is not problematic in a minimal container, I encountered an issue when conducting integration tests for the operable layer. Running the script standalone revealed this potential bug.
You can find the relevant code here:
std/src/lib/ops/writeScript.nix
Line 39 in 4e20f55
Do you consider this a bug that should be addressed to ensure the script's path purity?
The text was updated successfully, but these errors were encountered: