Skip to content

Drop 'path' from Cargo dependencies during rebase - #777

Merged
cottsay merged 2 commits into
masterfrom
cottsay/normalize-cargo
Jul 23, 2026
Merged

Drop 'path' from Cargo dependencies during rebase#777
cottsay merged 2 commits into
masterfrom
cottsay/normalize-cargo

Conversation

@cottsay

@cottsay cottsay commented Jun 26, 2026

Copy link
Copy Markdown
Member

The Bloom rebasing process involves trimming the repository contents to only include the package being released. Cargo manifests can reference other packages in the repository using a 'path' value as part of the dependency spec, which is no longer valid.

Remove all 'path' values from dependencies and add a placeholder 'version' value if one is not already present such that the manifest is still valid.


Eventually, we'll want this normalization process to be more involved so that we can de-workspace the cargo packages as well. This is done as part of cargo package and cargo read-manifest.

I'm not 100% certain that this is the right place to do this. Maybe it should be an implicit patch, or should be moved to rosrelease.py, or should maybe be conditional on detecting a package of type cargo or ament_cargo. I'm open to suggestions.

@cottsay
cottsay requested a review from Blast545 June 26, 2026 16:12
@cottsay cottsay self-assigned this Jun 26, 2026
The Bloom rebasing process involves trimming the repository contents to
only include the package being released. Cargo manifests can reference
other packages in the repository using a 'path' value as part of the
dependency spec, which is no longer valid.

Remove all 'path' values from dependencies and add a placeholder
'version' value if one is not already present such that the manifest is
still valid.
@cottsay
cottsay force-pushed the cottsay/normalize-cargo branch from 5e1e253 to 8c5ed8c Compare June 26, 2026 16:15

@Blast545 Blast545 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Small typo, otherwise LGTM

Comment thread bloom/generators/release.py Outdated
Comment thread bloom/generators/release.py
Co-authored-by: Jorge J. Perez <j.j.perez13@hotmail.com>
@cottsay
cottsay merged commit 6a330de into master Jul 23, 2026
17 checks passed
@cottsay
cottsay deleted the cottsay/normalize-cargo branch July 23, 2026 18:29
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.

2 participants