how to use an index url with username and password with pants 1.30.0 #12054
-
Hi, I am using pants build in CI and everything works as expected. Thanks for a great build tool This works if i hard-code the credential in the url itself but i would like to do something like this:
Is there any way to achieve this ? This is my global config:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
See here for an alternate way to specify any option via environment variable: https://www.pantsbuild.org/v1.30/docs/options#environment-variables While it's not substitution, I'm guessing this should work for you if you can export one more environment variable in your CI environment like so:
|
Beta Was this translation helpful? Give feedback.
-
Since I landed here first via searching I wanted to add that this seems a little cleaner these days via config file env var interpolation (or a not checked-in .pants.rc file) |
Beta Was this translation helpful? Give feedback.
See here for an alternate way to specify any option via environment variable: https://www.pantsbuild.org/v1.30/docs/options#environment-variables
While it's not substitution, I'm guessing this should work for you if you can export one more environment variable in your CI environment like so: