fix: resolve npm bin symlinks - #6
Merged
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR fixes execution when rabbit.ci is invoked through an npm-installed symlinked global bin entry by resolving the symlink chain to compute the correct script directory before launching the Node implementation. It also publishes the fix as @udx/rabbit-repo@0.1.4.
Changes:
- Resolve
bin/rabbit.ci’s real location by following symlinks before computingSCRIPT_DIR. - Extend
tests/suite.shto validate running the CLI via a symlinked “global bin” path. - Bump package version to
0.1.4(and lockfile version fields).
Reviewed changes
Copilot reviewed 2 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
bin/rabbit.ci |
Adds symlink-resolution loop to ensure rabbit.ci.js is located correctly when invoked via npm global-bin symlinks. |
tests/suite.sh |
Adds coverage that runs the CLI through a symlink to emulate npm global-bin behavior. |
package.json |
Bumps package version to 0.1.4. |
package-lock.json |
Updates lockfile version fields to match 0.1.4. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
udx-github
approved these changes
Aug 10, 2026
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.
Summary
Validation