Skip to content

y-bin-default and y-npx#73

Merged
solsson merged 9 commits intomainfrom
y-npx
Mar 27, 2026
Merged

y-bin-default and y-npx#73
solsson merged 9 commits intomainfrom
y-npx

Conversation

@solsson
Copy link
Copy Markdown
Collaborator

@solsson solsson commented Mar 27, 2026

No description provided.

Yolean k8s-qa and others added 9 commits March 27, 2026 12:22
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.
@solsson solsson merged commit 5035755 into main Mar 27, 2026
1 check failed
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