cli-sdk: link global bins next to vlt [ci full-matrix] by ruy-bot[bot] · Pull Request #2002 · vltpkg/vltpkg · GitHub
Skip to content

cli-sdk: link global bins next to vlt [ci full-matrix] - #2002

Merged
ruyadorno merged 3 commits into
ruyadorno/global-installfrom
ruyadorno/global-bin-dir
Oct 23, 2026
Merged

ruyadorno merged 3 commits into
ruyadorno/global-installfrom
ruyadorno/global-bin-dir

Conversation

@ruy-bot

@ruy-bot ruy-bot Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

Global bins were linked into <global-dir>/bin, which is
not in PATH, so they couldn't run. Now linked next to
vlt itself, with fallbacks + a shell-aware PATH hint.

Co-authored-by: Ruy Adorno ruy@vlt.sh

@ruy-bot
ruy-bot Bot added this pull request to stack #2003 October 14, 2026 19:27
@vercel

vercel Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

@coderabbitai

coderabbitai Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: cd461cd3-65a0-4694-824b-7f0653126dd1

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

github-actions Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

🐰 Bencher Report

Projectvltpkg
Branchruyadorno/global-bin-dir
Testbedubuntu-latest
Click to view all benchmark results
BenchmarkLatencyBenchmark Result
milliseconds (ms)
(Result Δ%)
Upper Boundary
milliseconds (ms)
(Limit %)
vlt install: vue & cache-lockfile📈 view plot
🚷 view threshold
509.67 ms
(-31.76%)Baseline: 746.84 ms
933.55 ms
(54.60%)
vlt install: vue & cache-lockfile-node-modules📈 view plot
🚷 view threshold
251.46 ms
(-24.01%)Baseline: 330.93 ms
413.66 ms
(60.79%)
vlt install: vue & clean📈 view plot
🚷 view threshold
6,379.54 ms
(-44.36%)Baseline: 11,465.63 ms
14,332.04 ms
(44.51%)
vlt install: vue & lockfile📈 view plot
🚷 view threshold
2,493.74 ms
(-42.86%)Baseline: 4,364.36 ms
5,455.45 ms
(45.71%)
🐰 View full continuous benchmarking report in Bencher

ruy-bot Bot and others added 2 commits October 22, 2026 21:18
## Changes
- link global bins into the dir of the running `vlt` (found in
  `PATH`) when writable, else `~/.local/bin` if in `PATH` (not win32),
  else `<global-dir>/bin`
- `--global-bin-dir` (cli, env, user config only)
- `<global-dir>/global-state.json` records bin dirs used; install,
  uninstall and build sweep owned links from all of them
- self dir refusing writes (EACCES/EPERM) falls back once; links made
  before a failure are removed on rollback
- `--force` outside `<global-dir>/bin` only replaces links, never plain
  files or the running `vlt`
- `vlt build -g` relinks bins and prints where
- shell-aware PATH hint; install receipt reader/writer
- cmd-shim: read win32 cross-drive shims (absolute target)
- docs

## Tests
- new modules, link/sweep/fallback/--force, config,
  install/uninstall/build, cmd-shim cross-drive read
- smoke: `install -g` with empty PATH falls back; with `vlt` in a PATH
  dir links there; uninstall sweeps it

Co-authored-by: Ruy Adorno <ruy@vlt.sh>
Co-authored-by: Ruy Adorno <ruy@vlt.sh>
Co-authored-by: Ruy Adorno <ruy@vlt.sh>
@ruyadorno
ruyadorno merged commit e407ee9 into main Oct 23, 2026
25 checks passed
@ruyadorno
ruyadorno deleted the ruyadorno/global-bin-dir branch October 23, 2026 00:01
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.

2 participants