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

Switch away from workspace-defined dependencies #726

Merged
merged 1 commit into from
Nov 17, 2023

Conversation

edmorley
Copy link
Member

@edmorley edmorley commented Nov 17, 2023

Both Dependabot and cargo-edit's cargo upgrade don't seem to handle dependencies being specified in the Cargo workspace Cargo.toml and inherited by individual crates very well.

As such, this switches back to specifying those dependencies explicitly in each crate. Dependabot always updates dependencies across all crates, so they will still stay in sync.

This will unblock Dependabot being able to open a PR for libcnb 0.16.0.

See also:
heroku/buildpacks-jvm#614

I've left the local shared crate dependencies as workspace-defined, since Dependabot or cargo-edit doesn't need to update those, since they are path-only dependencies.

Lastly, the lists of dependencies have been sorted alphabetically.

GUS-W-14513796.

@edmorley edmorley self-assigned this Nov 17, 2023
@edmorley edmorley marked this pull request as ready for review November 17, 2023 17:37
@edmorley edmorley requested a review from a team as a code owner November 17, 2023 17:37
Base automatically changed from edmorley/commons-main to main November 17, 2023 17:52
Both Dependabot and `cargo-edit`'s `cargo upgrade` don't seem
to handle dependencies being specified in the Cargo workspace
`Cargo.toml` and inherited by individual crates very well.

As such, this switches back to specifying those dependencies
explicitly in each crate. Dependabot always updates dependencies
across all crates, so they will still stay in sync.

This will unblock Dependabot being able to open a PR for libcnb 0.16.0.

See also:
heroku/buildpacks-jvm#614

I've left the local shared crate dependencies as workspace-defined,
since Dependabot or `cargo-edit` doesn't need to update those,
since they are path-only dependencies.

Lastly, the lists of dependencies have been sorted alphabetically.
@edmorley edmorley force-pushed the edmorley/explicit-dependencies branch from 9ab3bc6 to 8c06035 Compare November 17, 2023 17:54
@edmorley edmorley enabled auto-merge (squash) November 17, 2023 17:58
@edmorley edmorley merged commit 1af18a3 into main Nov 17, 2023
21 checks passed
@edmorley edmorley deleted the edmorley/explicit-dependencies branch November 17, 2023 18:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants