Allow omitting version pins from command line when version is given in hashed constraints file #12889
Closed
1 task done
Labels
resolution: duplicate
Duplicate of an existing issue/PR
type: feature request
Request for a new feature
What's the problem this feature will solve?
Making it easier to securely bootstrap environment management tools in CI (and other) environments.
Running
pip install --update -c ci-constraints.txt pdm
currently emits the following error:Describe the solution you'd like
I would prefer that the command
pip install --update -c ci-constraints.txt pdm
work (using the version pin given in the constraints file) without requiring duplication of that information in the installation command.(passing
-r ci-constraints.txt
instead isn't desirable, since the goal here is to install just enough to letpdm sync --no-self --dev
run to create the actual CI environment)Alternative Solutions
The workaround is to duplicate the locked
pdm
version in the GitHub CI bootstrapping step. For my use case, I did that via a short helper script:Additional context
N/A
Code of Conduct
The text was updated successfully, but these errors were encountered: