Repository navigation
Fix/create bun bin directory and path - #53
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix issue where bun not exist on installing binary directly via npm package first