feat: manifest rows for the tools dev actually uses
A new laptop built from the manifest had no Claude Code, no beads, no jq and no Go tooling, and its Nerd Font rows installed fonts-powerline, which is the Powerline glyphs alone and not a Nerd Font. New rows: - agents/claude: Anthropic's native installer, downloaded to the run's workdir, checked non-empty, then run with bash (no pipe, no root). - agents/beads, core/tea, core/bun: brew-only, @needs core/brew. - core/jq, shellcheck, clang-format, gitleaks, xz: plain apt/brew rows. - core/go-tools: gopls, goimports, golangci-lint and staticcheck through a new `go` channel that runs after the tarball and brew channels, because `go install` needs a go. Tools already in GOBIN are left alone. - core/rust: rustup-init downloaded and checked, --no-modify-path because ~/.zshenv already sources ~/.cargo/env. - virt/incus: invasive, never ticked for you. - apps/claude-desktop (gui): on Linux, adds Anthropic's apt repository and refuses the signing key unless its fingerprint matches the published one. Mac uses the claude cask. - apps/signal (gui): flathub org.signal.Signal, --user; signal cask on Mac. Changed: the Nerd Font rows unpack the Nerd Fonts release into ~/.local/share/fonts and run fc-cache on Linux (they @needs core/xz). The pi plugin spec adds pi-lens and pi-mcp-adapter. agents/specify-cli is dropped. The uv channel stays, and its tests now run against a fixture row.
This commit is contained in:
1 parent
d09ba0f941
commit
01f77bceaa
7 files changed
+438
-29
No files matched your search
+24
-1
@@ -8,7 +8,8 @@
|
||||
# FAKE_BOOT_PW the password that gets a 200; anything else gets a 401
|
||||
# FAKE_BOOT_CODE force a code (404, 000, 500 ...) whatever the password
|
||||
# FAKE_BWS_SUMS match (default) | mismatch | absent
|
||||
# FAKE_FAIL=curl:deb | curl:chezmoi | curl:fzf | curl:docker
|
||||
# FAKE_FAIL=curl:deb | curl:chezmoi | curl:fzf | curl:docker | curl:claude
|
||||
# | curl:rustup | curl:font | curl:claude-desktop
|
||||
# fail just that one download
|
||||
|
||||
_fb=$(dirname "$0") # the fakebin directory
|
||||
@@ -57,6 +58,28 @@ case $url in
|
||||
# FAKE_FAIL=curl:docker is that download failing.
|
||||
[ "$mode" = docker ] && exit 22
|
||||
installer docker "\$HOME/.local/bin" | emit; exit 0 ;;
|
||||
# Claude Code's native installer and rustup-init, both downloaded to a file
|
||||
# and run from it, the docker shape. Each stand-in drops the fake of the same
|
||||
# name where the real one would put it, so the post-install `have` is real.
|
||||
https://claude.ai/install.sh)
|
||||
[ "$mode" = claude ] && exit 22
|
||||
installer claude "\$HOME/.local/bin" | emit; exit 0 ;;
|
||||
https://sh.rustup.rs)
|
||||
[ "$mode" = rustup ] && exit 22
|
||||
installer rustup "\${CARGO_HOME:-\$HOME/.cargo}/bin" | emit; exit 0 ;;
|
||||
# The Claude Desktop apt repository's signing key. Its fingerprint is what the
|
||||
# fake gpg reports, so the key's content here does not matter -- only that it
|
||||
# arrived.
|
||||
https://downloads.claude.ai/claude-desktop/key.asc)
|
||||
[ "$mode" = claude-desktop ] && exit 22
|
||||
printf -- '-----BEGIN PGP PUBLIC KEY BLOCK-----\nfake\n' | emit; exit 0 ;;
|
||||
# A Nerd Fonts release: a real .tar.xz holding one .ttf named for the family,
|
||||
# so the extract and the "already installed" probe both have something to see.
|
||||
https://github.com/ryanoasis/nerd-fonts/releases/latest/download/*.tar.xz)
|
||||
[ "$mode" = font ] && exit 22
|
||||
f=${url##*/}; f=${f%.tar.xz}
|
||||
d=$(mktemp -d); : > "$d/${f}NerdFont-Regular.ttf"
|
||||
tar -cJf - -C "$d" . | emit; rm -rf "$d"; exit 0 ;;
|
||||
*go.dev/VERSION*)
|
||||
echo go1.99.0; exit 0 ;;
|
||||
*api.github.com*)
|
||||
|
||||
@@ -123,6 +123,25 @@ chezmoi)
|
||||
mkdir -p "$src/.git" && : > "$src/.git/config" && : > "$src/README" || exit 1
|
||||
exit 0 ;;
|
||||
curl) . "$(dirname "$0")/_curl" ;;
|
||||
gpg)
|
||||
# `gpg --show-keys --with-colons KEY`: one fpr record. FAKE_GPG_FPR stands in
|
||||
# for a key that is not the one Anthropic publishes.
|
||||
printf 'pub:-:4096:1:BAA929FF1A7ECACE:0:::-:::scESC::::::23::0:\n'
|
||||
printf 'fpr:::::::::%s:\n' "${FAKE_GPG_FPR:-31DDDE24DDFAB679F42D7BD2BAA929FF1A7ECACE}"
|
||||
exit 0 ;;
|
||||
go)
|
||||
# `go env GOBIN` is empty and GOPATH is ~/go, which is the stock layout.
|
||||
# `go install MOD@latest` drops a fake of the module's last segment in
|
||||
# ~/go/bin, so a second run can see it. FAKE_FAIL=go:install fails them.
|
||||
case ${1:-} in
|
||||
env) case ${2:-} in GOPATH) echo "$HOME/go" ;; esac; exit 0 ;;
|
||||
install)
|
||||
[ "$mode" = install ] && exit 1
|
||||
t=${2%@*}; t=${t##*/}
|
||||
mkdir -p "$HOME/go/bin" && ln -sf "$(dirname "$0")/_fake" "$HOME/go/bin/$t"
|
||||
exit 0 ;;
|
||||
esac
|
||||
exit 0 ;;
|
||||
fzf)
|
||||
# The picker's own fzf, and the only fake here whose ARGV is the thing
|
||||
# under test. `--bind` strings are built across a dozen continued lines, so
|
||||
|
||||
Reference in new issue
Block a user