Do not add --upgrade
flag to generated output file
#1814
Labels
bug
Something isn't working
compatibility
Compatibility with a specification or another tool
good first issue
Good for newcomers
uv
andpip-tools
both add the full command to the generated output file. When running an upgrade command,uv
will add--upgrade
too whilepip-tools
will not.This flag in particular should be ignored when generating the output file I think. My reasoning is, I'm running
pre-commit
checks that will only check if the generated file frompyproject.toml
is consistent with therequirements.txt
in the repo. Since the command does not use--upgrade
it will detect a change in the generated output after an upgrade.Or if I do not execute my hooks, the CI will complain because the files were changed by doing
uv pip compile
.pip-tools
Both commands will generate the same output file.
uv
The generated outputs will be different: the first one will contain the
--upgrade
flag, the second one won't.The text was updated successfully, but these errors were encountered: