pdm import does not check for duplicates #1584
Labels
🐛 bug
Something isn't working
💝 good first issue
Good for newcomers
❓ help wanted
Extra attention is needed
Running
pdm import
when you already have dependencies defined (maybe because you want to unify multiple requirements) or just by running it for the same file multiple times will result in duplicate entries.(“Make sure you run commands with
-v
flag before pasting the output.”; -v does not seem to change the output ofpdm import
.)Steps to reproduce
Have a initialized pdm project with
pyproject.toml
and a simplerequirements.txt
file (echo sqlalchemy > requirements.txt
).Run
pdm import requirements.txt -f requirements
multiple times.Actual behavior
You get duplicate dependencies:
Expected behavior
Entries already existing should not be added again.
Environment Information
The text was updated successfully, but these errors were encountered: