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

Rename dev dependencies to dependency groups in lockfile #8391

Merged
merged 1 commit into from
Oct 22, 2024

Conversation

charliermarsh
Copy link
Member

Summary

This is backwards compatible (we respect dev-dependencies as an alias).

Part of #8272.

@charliermarsh charliermarsh changed the base branch from main to tracking/735 October 20, 2024 20:14
@charliermarsh charliermarsh added the enhancement New feature or improvement to existing functionality label Oct 20, 2024
@charliermarsh charliermarsh force-pushed the charlie/lock-dep-groups branch 3 times, most recently from 08317a1 to 189b040 Compare October 20, 2024 20:33
@T-256
Copy link
Contributor

T-256 commented Oct 20, 2024

This is backwards compatible

How is this about forward compatibility? i.e. user who has old uv wants to interact with new lockfile from random project?
Should bump the lockfile's version?

@zanieb zanieb mentioned this pull request Oct 20, 2024
@charliermarsh charliermarsh force-pushed the charlie/lock-dep-groups branch from 189b040 to 166f81a Compare October 22, 2024 01:51
@charliermarsh
Copy link
Member Author

How is this about forward compatibility? i.e. user who has old uv wants to interact with new lockfile from random project?
Should bump the lockfile's version?

Yeah this wouldn't work. I don't think bumping the version even helps here, because prior versions of uv don't look at it and don't (e.g.) throw an error or show a warning.

@charliermarsh charliermarsh requested a review from zanieb October 22, 2024 01:52
@charliermarsh charliermarsh merged commit 3afd95f into tracking/735 Oct 22, 2024
63 checks passed
@charliermarsh charliermarsh deleted the charlie/lock-dep-groups branch October 22, 2024 02:56
charliermarsh added a commit that referenced this pull request Oct 22, 2024
## Summary

This is backwards compatible (we respect `dev-dependencies` as an
alias).

Part of #8272.
charliermarsh added a commit that referenced this pull request Oct 23, 2024
## Summary

This is backwards compatible (we respect `dev-dependencies` as an
alias).

Part of #8272.
charliermarsh added a commit that referenced this pull request Oct 23, 2024
…8501)

## Summary

Per discussion on Discord, we're going to keep these names for now
(changed in #8391 but not yet released) for compatibility. They're just
cosmetic, but with the changes as-is, if you ran an older uv version
over a newer lockfile...

- For `uv sync`: the lockfile would be invalidated, and we'd re-resolve.
- For `uv sync --frozen`: we'd silently skip the development
dependencies.

We'll change these names in the future once we've added better error
handling around lockfile versions (#8465).
charliermarsh added a commit that referenced this pull request Oct 25, 2024
This is backwards compatible (we respect `dev-dependencies` as an
alias).

Part of #8272.
charliermarsh added a commit that referenced this pull request Oct 25, 2024
This is backwards compatible (we respect `dev-dependencies` as an
alias).

Part of #8272.
charliermarsh added a commit that referenced this pull request Oct 25, 2024
This is backwards compatible (we respect `dev-dependencies` as an
alias).

Part of #8272.
zanieb pushed a commit that referenced this pull request Oct 25, 2024
This is backwards compatible (we respect `dev-dependencies` as an
alias).

Part of #8272.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or improvement to existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants