Skip to content

how to use an index url with username and password with pants 1.30.0 #12054

Closed Answered by jsirois
godfatherofdevil asked this question in Q&A
Discussion options

You must be logged in to vote

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:

export PANTS_PYTHON_REPOS_INDEXES="https://${CI_USER}:${CI_JOB_TOKEN}@<index_url>"

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@jsirois
Comment options

@benjyw
Comment options

benjyw May 11, 2021
Maintainer Sponsor

@godfatherofdevil
Comment options

Answer selected by godfatherofdevil
Comment options

You must be logged in to vote
1 reply
@benjyw
Comment options

benjyw Feb 3, 2024
Maintainer Sponsor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants