Skip to content

Fix swap image signing with --git-describe#819

Merged
bunnie merged 1 commit intobetrusted-io:mainfrom
sbellem:fix-swap-signing-semver
Feb 13, 2026
Merged

Fix swap image signing with --git-describe#819
bunnie merged 1 commit intobetrusted-io:mainfrom
sbellem:fix-swap-signing-semver

Conversation

@sbellem
Copy link
Copy Markdown
Contributor

@sbellem sbellem commented Feb 13, 2026

Summary

Pass semver from --git-describe to swap image signing code path.

PR #817 added --git-describe and --git-rev support but the swap image code path in xous-create-image was not updated to use the semver for signing.

Changes

  • swap_writer.rs: Add semver parameter to encrypt_to()
  • xous-create-image.rs: Parse --git-describe and pass to encrypt_to()
  • xous-app-uf2.rs: Same changes for consistency
  • builder.rs: Pass --git-describe to xous-create-image

Test plan

  • Build baosec with explicit --git-describe and --git-rev arguments
  • Verify swap image signing succeeds

Fixes #818

Pass semver from --git-describe to swap image signing code path.

PR betrusted-io#817 added --git-describe and --git-rev support but the swap
image code path in xous-create-image was not updated to use the
semver for signing.

Changes:
- swap_writer.rs: Add semver parameter to encrypt_to()
- xous-create-image.rs: Parse --git-describe and pass to encrypt_to()
- xous-app-uf2.rs: Same changes for consistency
- builder.rs: Pass --git-describe to xous-create-image

Fixes betrusted-io#818
@bunnie
Copy link
Copy Markdown
Member

bunnie commented Feb 13, 2026

Rust 1.93.1 just dropped. Xobs just cut a new release and I'll run CI when that hits. if it's all clean we're good to merge.

@bunnie bunnie merged commit 2699a33 into betrusted-io:main Feb 13, 2026
15 of 24 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.

xous-create-image: Swap image signing fails when using --git-describe with baosec builds

2 participants