https://pantsbuild.org/ logo
#general
Title
# general
n

nutritious-minister-3808

07/27/2022, 1:12 PM
I had wanted some confirmation about a interaction between lockfiles and
PANTS_PYTHON_REPOS_INDEXES
or the
python-repos.index
setting. I assume that custom indexes have to be set during the
pants generate-lockfiles
step to be used. If a custom index is set by
PANTS_PYTHON_REPOS_INDEXES
env var or a
pants.ci.toml
only during the
pants package
step, it will not be used for retrieving the locked dependencies. Is that a correct understanding?
1
r

refined-addition-53644

07/27/2022, 1:57 PM
Hey I do set-up extra index during lockfile generation. I do think that’s how it’s supposed to work. But again I would leave it to some core maintainers to answer it.
h

happy-kitchen-89482

07/27/2022, 2:21 PM
That is correct - the lockfile generator needs to see the custom indexes
n

nutritious-minister-3808

07/27/2022, 2:28 PM
Thank you both for the confirmation!
2 Views