-
-
Notifications
You must be signed in to change notification settings - Fork 422
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pdm install --no-lock fails in the absence of lock file #2245
Comments
Unless I'm mistaken. The logs are indeed curious. |
No, that's not what it means. The
|
Well yes.
PDM needs a lock file to install dependencies. |
Oh, I almost forget there's a such option, i can't remember what the use case it's for. |
it's looks pretty like pdm sync, maybe we should remove the option. |
Hmmm I definitely don't think But yeah, if that's what |
It doesn't make sense: the help message clearly says the command will go on and do without the lock file. But then crash because of the absence of lock file. |
I guess you interpreted the help message based on your own experience with Pipenv, and I interpreted it without it. To me the message is clear too, and the result expected (error), but not for you 🙂 That's fine of course, PDM and Pipenv work differently. Maybe @frostming will be interested in adding such functionality (internal lock data for one time installs without generating lock files). |
OK I won't lose any more time arguing. |
Fixes #2245 Signed-off-by: Frost Ming <[email protected]>
Steps to reproduce
rm pdm.lock
pdm install --no-lock -v
Actual behavior
Expected behavior
install succeeds
Environment Information
The text was updated successfully, but these errors were encountered: