Skip to content

fix(ci): pin bun version and improve CLI install reliability#789

Merged
DBosley merged 2 commits intomainfrom
fix/pin-bun-version
Jan 13, 2026
Merged

fix(ci): pin bun version and improve CLI install reliability#789
DBosley merged 2 commits intomainfrom
fix/pin-bun-version

Conversation

@DBosley
Copy link
Copy Markdown
Contributor

@DBosley DBosley commented Jan 12, 2026

Summary

  • Pin bun version to 1.3.4 in all CI workflows (instead of latest)
  • Add pre-install cleanup to handle existing CLI installations
  • Simplify build process by removing double-install/build workarounds

Changes

CI Workflows

Pin bun to 1.3.4 in:

  • publish.yml
  • prettier.yml
  • solana.yml
  • sdk.yml

CLI Install Script

Pre-install cleanup:

  • Remove old ntt binary from PATH if present
  • Remove old source checkout (~/.ntt-cli/.checkout)
  • Unlink old bun-linked package if registered
  • Preserve ~/.ntt-cli/version for debugging

Build simplification:

  • Remove double-install hack (bun install || true; bun install)
  • Remove double-build hack (bun build || true; bun build)
  • Remove unnecessary npm symlink workaround
  • Use root bun run build which handles dependency ordering correctly

Test plan

  • Run curl -fsSL https://raw.githubusercontent.com/wormhole-foundation/native-token-transfers/fix/pin-bun-version/cli/install.sh | bash -s -- -b fix/pin-bun-version on a fresh system
  • Run same command on a system with existing ntt CLI installed
  • Verify CI workflows pass with pinned bun version

Addresses installation failures for users with existing ntt CLI installations
and removes hacky double-build workarounds.

Pre-install cleanup:
- Add cleanup_old_install function that runs before installation
- Remove old ntt binary from PATH if present
- Remove old source checkout (~/.ntt-cli/.checkout)
- Unlink old bun-linked package if registered
- Preserve ~/.ntt-cli/version for debugging

Build process simplification:
- Remove double-install and double-build hacks
- Remove unnecessary npm symlink workaround
- Use root `bun run build` script which handles dependency ordering
  (sdk-definitions-ntt must be built before other packages)
@DBosley DBosley merged commit 5bde024 into main Jan 13, 2026
17 checks passed
@DBosley DBosley deleted the fix/pin-bun-version branch January 13, 2026 16:43
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.

3 participants