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 #614

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.

Hopefully this change will fix:

updater | 2023/11/17 15:48:21 INFO <job_751330580> No update possible for libcnb 0.15.0

Seen in:
https://github.com/heroku/buildpacks-jvm/network/updates/751330580

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-14513805.

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.

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.

Hopefully this change will fix:

```
updater | 2023/11/17 15:48:21 INFO <job_751330580> No update possible for libcnb 0.15.0
```

Seen in:
https://github.com/heroku/buildpacks-jvm/network/updates/751330580

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 added the skip changelog Pull requests that do not require changes to the CHANGELOG file label Nov 17, 2023
@edmorley edmorley self-assigned this Nov 17, 2023
@edmorley edmorley marked this pull request as ready for review November 17, 2023 16:45
@edmorley edmorley requested a review from a team as a code owner November 17, 2023 16:45
Copy link
Member

@Malax Malax left a comment

Choose a reason for hiding this comment

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

I'm sad that we need to do this. :(

@edmorley edmorley merged commit 4e78bb9 into main Nov 17, 2023
10 checks passed
@edmorley edmorley deleted the edmorley/explicit-dependencies branch November 17, 2023 16:54
@edmorley
Copy link
Member Author

Agree - though less bad than me having to manually open a libcnb PR every time :-)

Dependabot is now working again at least: #615

edmorley added a commit to heroku/buildpacks-nodejs that referenced this pull request 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip changelog Pull requests that do not require changes to the CHANGELOG file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants