Skip to content

Use published, versioned bootc internal crates - #403

Merged
jeckersb merged 1 commit into
bootc-dev:mainfrom
jeckersb:use-versioned-bootc-crates
Oct 5, 2026
Merged

jeckersb merged 1 commit into
bootc-dev:mainfrom
jeckersb:use-versioned-bootc-crates

Conversation

@jeckersb

@jeckersb jeckersb commented Oct 5, 2026

Copy link
Copy Markdown
Collaborator

We don't need to track these by hash anymore, and more importantly the gitref dependencies are not grouped properly by renovate, so these crates keep getting bumped independently and they always conflict with each other.

This also reverts #367 where I tried (and failed) to get them to group properly.

We don't need to track these by hash anymore, and more importantly the
gitref dependencies are not grouped properly by renovate, so these
crates keep getting bumped independently and they always conflict with
each other.

This also reverts bootc-dev#367 where I tried (and failed) to get them to group
properly.

Signed-off-by: John Eckersberg <dev@eckersberg.com>
Comment thread crates/kit/Cargo.toml
bootc-mount = { package = "bootc-internal-mount", git = "https://github.com/bootc-dev/bootc", rev = "83d15891428cda862c5c732397f5dd7c81dc4a23" }
bootc-utils = { package = "bootc-internal-utils", git = "https://github.com/bootc-dev/bootc", rev = "83d15891428cda862c5c732397f5dd7c81dc4a23" }
bootc-mount = { package = "bootc-internal-mount", version = "1.16.14" }
bootc-utils = { package = "bootc-internal-utils", version = "1.16.14" }

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I think renovate may still try to bump these separately. The best fix is to re-export one of them from the other; most likely bootc-mount should re-export bootc_utils.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I think they'll just all get bundled together into the "rust" one like #400

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Ah OK yeah probably true, but it's still a best practice to do the "re-export" thing so there's only one version. It's what we did with composefs-rs for bootc

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I don't think the re-export is necessary here because although mount uses utils (only for CommandRunExt) it doesn't leak any of the API from utils into its own API. The problem with bootc/composesfs-rs was that bootc exposed parts of the composefs-rs API in its own API, so you could get into version mismatches where the "inner" version of composefs-rs that bootc was built against was different from the external version used by the caller.

In the case here with bcvk it doesn't really matter too much except for a slightly larger binary size if the two diverge, but I think that's probably trivial in the grand scheme of things.

@jeckersb
jeckersb enabled auto-merge (squash) October 5, 2026 16:09
@jeckersb
jeckersb merged commit a0f7af9 into bootc-dev:main Oct 5, 2026
28 checks passed
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