Skip to content

fix: use stellar keys generate --overwrite to handle existing identities#444

Merged
legend-esc merged 1 commit into
mainfrom
fix/smoke-test-keys-overwrite
Jul 1, 2026
Merged

fix: use stellar keys generate --overwrite to handle existing identities#444
legend-esc merged 1 commit into
mainfrom
fix/smoke-test-keys-overwrite

Conversation

@legend-esc

Copy link
Copy Markdown
Owner

The 'stellar keys rm ... || true' + 'stellar keys generate' pattern fails in CI when the identity already exists because rm output goes to stdout (not stderr), so '2>/dev/null' does not suppress the error, and config-dir differences between calls can leave the key in place.

stellar-cli v26 --overwrite atomically replaces any existing identity, removing the need for a separate rm step.

Summary

Changes

Layer(s) affected

  • Smart contracts (Rust / Soroban)
  • API (NestJS)
  • Frontend (Angular)
  • Shared types
  • Docs / config

Testing

  • cargo test passes
  • npm run test passes (api)
  • npm run test passes (frontend)
  • Manually tested on testnet

Checklist

  • No private keys or secrets committed
  • New functions have at least one test
  • Error codes follow the stable range (100–120)
  • Breaking changes documented below

Breaking changes

The 'stellar keys rm ... || true' + 'stellar keys generate' pattern
fails in CI when the identity already exists because rm output goes to
stdout (not stderr), so '2>/dev/null' does not suppress the error, and
config-dir differences between calls can leave the key in place.

stellar-cli v26 --overwrite atomically replaces any existing identity,
removing the need for a separate rm step.
@legend-esc legend-esc merged commit 6cdf676 into main Jul 1, 2026
10 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.

1 participant