Conversation
Instead of changing PATH to prepend ystack/bin globally (which would shadow system tools), provide y-bin-default check/ensure to selectively link managed binaries (currently yarn) into ~/.local/bin where they take precedence. Fails on ensure if the symlink exists but another binary wins in PATH, recommending a PATH update. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
y-* binaries belong in ystack PATH, not in ~/.local/bin. The ensure subcommand now rejects any bin name starting with y- to prevent accidental shadowing of ystack scripts. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The previous check resolved both paths through readlink -f and compared the final binaries. This could falsely report OK when a different binary in PATH happened to resolve to the same file, or when the shell hash cache pointed elsewhere. Now compares the command -v result directly against the expected ~/.local/bin/BIN path. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Adds y-npx as a y-bin-download wrapper that invokes the y1 binary with argv[0]=y-npx to trigger npx gate mode. Both yarn and npx entries in y-bin.runner.yaml are updated to v0.2.0 with new checksums. npx added to y-bin-default known defaults. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Scripts that document npx in their help text (e.g. y-bin-default listing npx as a known default) should not trigger the no_npx lint. The check now strips YHELP blocks before scanning for npx usage. Also fixes pre-existing non-ASCII em dashes in comments. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
command -v found the binary in $YBIN (ystack/bin) which is the source, not a competing installation. Now iterates PATH entries excluding $YBIN to find the actual competing binary the user would get.
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.
No description provided.