Skip to content
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

pipenv install --deploy / poetry lock --check equivalent? #810

Closed
gitpushdashf opened this issue Dec 20, 2021 · 4 comments · Fixed by #813
Closed

pipenv install --deploy / poetry lock --check equivalent? #810

gitpushdashf opened this issue Dec 20, 2021 · 4 comments · Fixed by #813
Labels
⭐ enhancement Improvements for existing features

Comments

@gitpushdashf
Copy link

It's really nice in CI to require that the lock file is up to date. So I like to use pipenv install --deploy or poetry lock --check (Poetry v1.2). I can't find an equivalent in pdm. Is there one?

If pyproject.toml has been updated, I want to require that the lockfile is current and there's no disparity.

Thank you!

@gitpushdashf gitpushdashf added the ⭐ enhancement Improvements for existing features label Dec 20, 2021
@pawamoy
Copy link
Sponsor Contributor

pawamoy commented Dec 20, 2021

pdm install --no-lock? I think it'll fail if there's a hash mismatch.

@gitpushdashf
Copy link
Author

Ah, that is it. Thank you!

I think I saw that, but I thought --no-lock meant to ignore the lockfile.

@frostming
Copy link
Collaborator

I think it is worth adding, --no-lock is just a side-effect, if the package exists in the lock file it won't crash.

@gitpushdashf
Copy link
Author

Wow, thank you so much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⭐ enhancement Improvements for existing features
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants