mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-27 02:14:30 +01:00
docs: the installer follows a verified exact project Bun pin (capy-install, troubleshooting, changelog)
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
f492a5a9d0
commit
da57291220
3 files changed
+20
-12
No files matched your search
@@ -12,6 +12,7 @@
|
||||
- **The install check agrees with the Bun your workflows run.** `GSTACK_LAUNCH` now carries `PATH=<verified bun dir>:$PATH`, `GSTACK_CAPY=1` and `GSTACK_INSTALL_VERDICT`, and the wrapper prints it on `--check` as well as install. A bare doctor run in a fresh shell names the off-PATH Bun (`bun 1.4.2 found at ~/.bun/bin (not on PATH)`) with the exact fix. The installer reuses a verified Bun instead of downloading it again, and installs the version a project's CI pins next to a different system Bun. Planning-only checks (`--for autoplan`, the plan reviews, office-hours) report a project test-pin mismatch as `SKIP pins (planning-only …)`; workflows that run the project's tests still require it.
|
||||
- **A stale copy of the Capy skill gets an owner action instead of a silent pass.** The canonical skill now lives in the repo at `capy/skill/gstack/`. The Drive copy is a small frozen bootstrapper that hands off to the checkout's full wrapper (`bin/gstack-capy-session`). An older copy keeps working and prints `CAPY_WRAPPER_STALE` with the copy command.
|
||||
- **Machines that never run a workflow don't pay for the install.** A warm install on the same HEAD skips setup (about 1 s). The skill installs before the first workflow rather than at every session start. `docs/capy-install.md` explains how to bake gstack into a Capy snapshot.
|
||||
- **The installed Bun follows the project's exact pin.** When the target repo pins one Bun version exactly (a CI `bun-version:`, `.bun-version`, engines) above gstack's minimum and gstack carries its verified archive (now 1.4.2 and 1.4.3), that archive is installed, so a repo moving its CI to 1.4.3 does not leave Capy machines on 1.4.2 failing `pins`. An exact pin without a verified archive stops with `RUNTIME_PIN_CONFLICT` and lists the verified versions.
|
||||
|
||||
### For contributors
|
||||
|
||||
|
||||
+10
-6
@@ -67,12 +67,16 @@ resets.
|
||||
read with the doctor's own parser (`bin/gstack-runtime-pins.ts`: engines,
|
||||
packageManager, `.tool-versions`, `.bun-version` and CI `bun-version:` lanes
|
||||
for this platform). When neither the Bun on PATH nor the installed one
|
||||
satisfies gstack's minimum and the pins, and every exact pin equals the
|
||||
version gstack carries a verified archive for (1.4.2), the installer
|
||||
downloads that exact release archive, verifies its SHA-256 against
|
||||
`bin/gstack-bun-version.sh` and installs it into `$BUN_INSTALL/bin`, beside
|
||||
any different system Bun (no symlink into a shared bin directory). Any other
|
||||
exact pin, or a range gstack's minimum does not satisfy, stops with both
|
||||
satisfies gstack's minimum and the pins, the installer downloads one exact
|
||||
release archive, verifies its SHA-256 against `bin/gstack-bun-version.sh`
|
||||
and installs it into `$BUN_INSTALL/bin`, beside any different system Bun (no
|
||||
symlink into a shared bin directory). That archive is the supported minimum
|
||||
(1.4.2), or the project's exact pin when it is above the minimum and gstack
|
||||
carries a verified archive for it (`GSTACK_BUN_VERIFIED`: 1.4.2, 1.4.3), so a
|
||||
repo whose CI pins `bun-version: 1.4.3` gets 1.4.3. With an exact pin, only
|
||||
that version satisfies it. Any other exact pin (below the minimum, two
|
||||
different ones, or one without a verified archive), or a range gstack's
|
||||
minimum does not satisfy, stops with both
|
||||
constraints ([RUNTIME_PIN_CONFLICT](troubleshooting.md#capy-install-runtime-conflict),
|
||||
exit 3) before `./setup`. With no Bun at or above the security floor, the
|
||||
verified one is installed first so the pins can be read.
|
||||
|
||||
@@ -1135,13 +1135,16 @@ reports `gstack: ok <installed> (requested <ref>; run <checkout>/bin/gstack-upgr
|
||||
<a id="capy-install-runtime-conflict"></a>
|
||||
### `gstack-capy-install: Bun conflict: gstack needs >=<minimum>, <project> pins <constraint> (RUNTIME_PIN_CONFLICT; ...)`
|
||||
|
||||
**Meaning.** The installer upgrades Bun only when gstack's supported minimum
|
||||
and the target project's pin agree on a version. Here they do not (for
|
||||
example the project pins `bun@1.3.14` exactly), so the installer changed
|
||||
nothing and stopped before `./setup`.
|
||||
**Meaning.** The installer installs one verified Bun archive: gstack's
|
||||
supported minimum, or the project's exact pin when that pin is above the
|
||||
minimum and listed in the message's `verified archives:`. Here the two do not
|
||||
meet (for example the project pins `bun@1.3.14`, or a version gstack has no
|
||||
verified archive for), so the installer changed nothing and stopped before
|
||||
`./setup`.
|
||||
|
||||
**Fix.** Raise the project's pin to gstack's supported minimum, or install
|
||||
gstack on a machine whose Bun the project accepts. `--project <path>` names
|
||||
**Fix.** Pin a verified version in the project, upgrade gstack to a release
|
||||
that verifies the pinned version, or install gstack on a machine whose Bun the
|
||||
project accepts. `--project <path>` names
|
||||
the project whose pins apply.
|
||||
|
||||
<a id="browser-ensure-failed"></a>
|
||||
|
||||
Reference in new issue
Block a user