Skip to content

Fix/create bun bin directory and path - #53

Merged
owenizedd merged 9 commits into
mainfrom
fix/create-bun-bin-directory-and-path
Jun 27, 2026
Merged

owenizedd merged 9 commits into
mainfrom
fix/create-bun-bin-directory-and-path

Conversation

@owenizedd

Copy link
Copy Markdown
Owner

Fix issue where bun not exist on installing binary directly via npm package first

Fixes the reported issue where installing a Bun version on a fresh
system failed with 'No such file or directory (os error 2)' because
~/.bun/bin did not exist.

Changes:
- commands::activate_bun now creates the parent directory of
  ~/.bun/bin/bun before copying the binary.
- install.sh adds ~/.bun/bin to PATH for bash, zsh, fish, and manual
  instructions so bun -v works after activation.
- bun::get_active_version no longer panics when bun is not in PATH;
  it returns an empty string so bum list still renders.
- Add unit test for activating bun with a missing bin directory.
- Add isolated /home/owenizedd e2e-test.sh plus containerized e2e-test-container.sh.
- Add e2e-visualization.html interactive canvas diagram.
- Add AGENTS.md with project context for AI agents.
- e2e-test.sh now builds and tests both node bin.js and
  target/release/bum in separate isolated /home/owenizedd directories.
- Update e2e-visualization.html to show the two parallel
  distribution paths.
- Add e2e-test-npm-install.sh with a multi-stage container build.
- The runtime image has Node.js only (no Bun, no Rust); it installs bum
  from a packed tarball and runs  in an isolated /home/owenizedd.
- Add a PATH hint after activate_bun when ~/.bun/bin is not in PATH.
- Bump version from 0.7.13 to 0.7.14 in Cargo.toml, package.json,
  install.sh, and all npm platform packages.
- Move e2e test scripts from root to e2e/ folder:
  e2e-test.sh -> e2e/test.sh
  e2e-test-container.sh -> e2e/test-container.sh
  e2e-test-npm-install.sh -> e2e/test-npm-install.sh
  test-npm.sh -> e2e/test-npm.sh
  e2e-visualization.html -> e2e/visualization.html
- Update internal path references in moved scripts and AGENTS.md.
- Update RELEASE.md to include optionalDependencies and npm platform
  packages in the version bump checklist.
@owenizedd
owenizedd merged commit 4afe43f into main Jun 27, 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