Skip to content

Conversation

@charliermarsh
Copy link
Member

Summary

Part of #8272.

@charliermarsh charliermarsh force-pushed the charlie/error-groups branch 2 times, most recently from 386c7e6 to 26e9cf2 Compare October 20, 2024 23:20

// Validate any requested dependency groups.
for group in dev.groups().iter() {
if !root.metadata.requires_dev.contains_key(group) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't love using metadata here (rather than root.dev_dependencies) because this metadata is mostly just intended for lockfile validation / caching (we invalidate the lockfile when the metadata changes). But if we use root.dev_dependencies, we will also fail if the user does --group foo when foo is empty. It seems wrong to fail when requesting a valid but empty group, so...

@zanieb zanieb mentioned this pull request Oct 20, 2024
@charliermarsh charliermarsh force-pushed the charlie/error-groups branch 2 times, most recently from 64045ed to 07b5f8c Compare October 22, 2024 02:04
@charliermarsh charliermarsh merged commit 61b4e81 into tracking/735 Oct 22, 2024
@charliermarsh charliermarsh deleted the charlie/error-groups branch October 22, 2024 02:08
charliermarsh added a commit that referenced this pull request Oct 22, 2024
charliermarsh added a commit that referenced this pull request Oct 23, 2024
charliermarsh added a commit that referenced this pull request Oct 25, 2024
charliermarsh added a commit that referenced this pull request Oct 25, 2024
charliermarsh added a commit that referenced this pull request Oct 25, 2024
zanieb pushed a commit that referenced this pull request Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants