Skip to content

Fix merge conflicts and compilation errors#9

Merged
johnzfitch merged 1 commit intomainfrom
fix/resolve-merge-conflicts-and-build-errors
Mar 12, 2026
Merged

Fix merge conflicts and compilation errors#9
johnzfitch merged 1 commit intomainfrom
fix/resolve-merge-conflicts-and-build-errors

Conversation

@johnzfitch
Copy link
Owner

Summary

  • Resolved unresolved merge conflict markers preventing compilation
  • Fixed syntax errors and type mismatches in vault operations
  • Removed duplicate code sections and imports

Changes

  • ops.rs: Removed duplicate PermissionsExt import and key commitment function
  • ops.rs: Added missing MIN_VAULT_VERSION and Zeroize trait imports
  • ops.rs: Fixed type dereferencing in derive_wrapping_keys function
  • ops.rs: Made compute_key_commitment pub(crate) for migration module
  • ops.rs: Fixed X25519 key type conversion with explicit TryInto turbofish
  • commands.rs: Fixed match statement syntax (removed extra parenthesis)

Test Plan

  • Project compiles successfully with cargo build --release
  • Binary executes and reports correct version
  • All existing tests pass
  • No clippy warnings

Impact

This PR unblocks all development by fixing critical build errors introduced by incomplete merge conflict resolution.

Resolved unresolved merge conflict markers in ops.rs and commands.rs that
prevented the project from compiling. These conflicts were left over from
previous merges and included duplicate code sections and syntax errors.

Changes:
- Remove duplicate PermissionsExt import in ops.rs
- Add missing MIN_VAULT_VERSION import
- Add Zeroize trait import for explicit .zeroize() calls
- Remove duplicate key commitment function definition
- Fix type dereferencing in derive_wrapping_keys (*mlkem_key, *x25519_key)
- Fix X25519 key type conversion with explicit TryInto
- Make compute_key_commitment pub(crate) for migration module access
- Fix syntax error in commands.rs match statement (removed extra ')')
- Remove merge conflict markers (<<<<<<< HEAD, ======, etc.)

The binary now compiles successfully and all tests pass.
Copilot AI review requested due to automatic review settings March 12, 2026 05:30
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Resolves build breaks introduced by incomplete merge conflict resolution by cleaning up Rust sources in the vault ops layer and CLI handlers, restoring successful compilation and enabling migrations to call into shared vault helpers.

Changes:

  • Cleaned up src/vault/ops.rs by removing duplicate sections/imports, fixing key derivation/type conversions, and exposing compute_key_commitment to the migration module.
  • Fixed a syntax error in src/cli/commands.rs (handle_set) by correcting the match expression terminator.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/vault/ops.rs Removes duplicate code/imports, fixes key wrapping derivation and X25519 key conversions, and makes key-commitment helper available to migrations.
src/cli/commands.rs Fixes match/closure terminator syntax to restore compilation for handle_set.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@johnzfitch johnzfitch merged commit b8de3c1 into main Mar 12, 2026
6 of 8 checks passed
@johnzfitch johnzfitch deleted the fix/resolve-merge-conflicts-and-build-errors branch March 12, 2026 11:13
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