Skip to content

Conversation

@shi2wei3
Copy link
Contributor

The previous commit (c325582) added --download-only support for the OSTree backend but did not add an error check for the composefs backend where this feature is not yet implemented.

This commit adds a proper error message at the start of upgrade_composefs() to explicitly bail out when --download-only is used, matching the pattern used for other unsupported composefs features like --mutate-in-place and edit operations.

Without this check, the flag would be silently ignored, potentially causing confusion for users expecting download-only behavior.

Error message: "--download-only is not yet supported for composefs backend"

The previous commit (c325582) added --download-only support for the
OSTree backend but did not add an error check for the composefs backend
where this feature is not yet implemented.

This commit adds a proper error message at the start of upgrade_composefs()
to explicitly bail out when --download-only is used, matching the pattern
used for other unsupported composefs features like --mutate-in-place and
edit operations.

Without this check, the flag would be silently ignored, potentially
causing confusion for users expecting download-only behavior.

Error message: "--download-only is not yet supported for composefs backend"

Signed-off-by: Wei Shi <[email protected]>
@bootc-bot bootc-bot bot requested a review from ckyrouac December 11, 2025 05:30
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 a check to prevent the use of the --download-only flag with the composefs backend, which does not yet support this feature. The change is straightforward and well-placed at the beginning of the upgrade_composefs function, ensuring it fails early with a clear error message. This improves the user experience by preventing silent failures and confusion. The implementation is consistent with how other unsupported features are handled in the composefs backend. The change is a good improvement.

@Johan-Liebert1 Johan-Liebert1 enabled auto-merge (rebase) December 11, 2025 06:42
@Johan-Liebert1 Johan-Liebert1 merged commit ebe7f63 into bootc-dev:main Dec 11, 2025
64 of 66 checks passed
@shi2wei3 shi2wei3 deleted the composefs-download-only-error branch December 11, 2025 10:34
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