Commit 27d8d72
0.1.3: fix find_global trailing-colon (atom-setup install skip)
Surfaced by an isolated end-to-end install test of release/v0.2.
The bash wrapper's `find_global()` rebuilds PATH like:
PATH=$(echo "$PATH" | tr ':' '\n' | grep -v ^$ATOM_DIR$ | tr '\n' ':')
The final `tr '\n' ':'` leaves a TRAILING COLON, which bash interprets
as cwd. When the wrapper is run from inside the source dir, cwd
contains a file named `atom-setup` (the wrapper itself), so
`command -v atom-setup` returned `./atom-setup` and the install loop
took the "already installed, skipping" path. Result: a true fresh
install on a machine without atom-setup on PATH ended up with no
global atom-setup, even though the wrapper appeared to succeed.
`find_global()` now strips both empty PATH components and the
trailing colon. All 5 CLIs install correctly in a scratch test.
Existing 0.1.2 users in any working state are unaffected — the bug
only bites a fresh `git clone + ./atom-setup` on a machine that
doesn't already have `atom-setup` on PATH.
Adds VERSION at the repo root. Plain text, forward-compatible with
the `atom upgrade` verb landing in v0.2 (which polls this file on
`main` to decide whether a new release is available).
Versions bumped 0.1.2 → 0.1.3 across all 5 package.json + lockfiles.
scripts/test-atom-setup.sh assertion updated. 57/57 still pass.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent 1364699 commit 27d8d72
14 files changed
Lines changed: 41 additions & 18 deletions
File tree
- bin
- atom-setup
- atom
- learnings
- model-race
- nucleus
- scripts
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
9 | 21 | | |
10 | 22 | | |
11 | 23 | | |
| |||
65 | 77 | | |
66 | 78 | | |
67 | 79 | | |
68 | | - | |
| 80 | + | |
| 81 | + | |
69 | 82 | | |
70 | 83 | | |
71 | 84 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
46 | 53 | | |
47 | 54 | | |
48 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
49 | 58 | | |
50 | 59 | | |
51 | 60 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments