Skip to content

Conversation

@cgwalters
Copy link
Collaborator

I was hitting a compliation error which looks
like it was actaully an incremental compilation bug? Or it might have been rust-analyzer and local builds fighting over enabled features.

Anyways, this ensures that we're gating on the composefs backend compiling.

I was hitting a compliation error which *looks*
like it was actaully an incremental compilation bug?
Or it might have been rust-analyzer and local builds
fighting over enabled features.

Anyways, this ensures that we're gating on the composefs
backend compiling.

Signed-off-by: Colin Walters <[email protected]>
@bootc-bot bootc-bot bot requested a review from jeckersb September 11, 2025 14:38
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request correctly adds CI validation for the composefs-backend feature, which is a great step to ensure build stability. The associated changes in the Rust code to conditionally compile constants are appropriate and well-executed. I have one minor suggestion for the Makefile to improve the clarity of the build commands.

Comment on lines 95 to 96
(cd crates/ostree-ext && cargo check --no-default-features)
(cd crates/lib && cargo check --no-default-features)
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

For better maintainability and to avoid subshells, you can use cargo's -p flag to specify the package to check directly from the workspace root.

	cargo check -p ostree-ext --no-default-features
	cargo check -p bootc-lib --no-default-features

}

/// Wrapper around [`rustix::openat`]
/// Wrapper around [`rustix::fs::openat`]
Copy link
Collaborator

Choose a reason for hiding this comment

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

accidentally included this?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Nope it's intentional, make validate-rust trips on it. See https://docs.rs/rustix/latest/rustix/fs/fn.openat.html

@jeckersb
Copy link
Collaborator

Hm is something wrong with the repo config? I have the "Merge pull request" button but there's not an approval on this yet. I won't touch it for the moment just incase we need this state to troubleshoot...

@cgwalters
Copy link
Collaborator Author

branch protection doesn't apply to anything other than main right now

@cgwalters cgwalters merged commit 1e01950 into bootc-dev:composefs-backend Sep 11, 2025
22 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