-
-
Notifications
You must be signed in to change notification settings - Fork 611
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
pip-compile expands environment variables #966
Comments
Hello @cbows, Thanks for the issue! How it works on pip side:
Thus, there is no way to distinguish whether the credentials come from env vars or not using pip API. Possible solutions could be:
Don't like either of them, though, and honestly, I'd be intuitively against implementing such things outside of pip API. Consider the alternatives:
|
Hello @atugushev, I agree there is no clean solution outside of pip. I guess for credentials there are, as you mentioned, ways around it, and they are probably better. This still leaves us with local paths (or any path really) though; Maybe there is a way to parse only |
@cbows
Maybe... It could be quite tricky, I imagine, and I think we need to fix #204 first 😊 |
@cbows Once #204 is fixed (there is currently a PR pending review), you could avoid using environment variables for local paths by using symlinks and relative paths, like
Where |
Environment variables get expanded by pip-compile. This is especially unwanted when the variable describes a password or local path.
Environment Versions
Steps to replicate
requirements.in
Expected result
requirements.txt
Actual result
The requirements.txt contains the expanded variables.
The text was updated successfully, but these errors were encountered: