Repository navigation
build(install): install.sh, Nix package, binstall metadata, Homebrew formula generator (OB6) - #139
Merged
Merged
Conversation
lg2m
force-pushed
the
feat/eng-880-install-paths
branch
from
September 23, 2026 04:05
80e8ccf to
a9c7233
Compare
…re test POSIX `curl … | sh` installer: detects the target, resolves the latest release (API, redirect fallback), verifies SHA256SUMS, installs to ~/.local/bin without sudo, prints the PATH hint per shell. tests/install_sh.sh drives it against a local http.server fixture and runs in CI. OB6 / ENG-880.
buildRustPackage on the pinned toolchain; `nix run github:retsu-AI/qq` runs qq. Tests are skipped in the package (CI covers them); the install check asserts `qq --version`. OB6 / ENG-880.
`[package.metadata.binstall]` points at the release archives; `repository`
now names retsu-AI/qq (binstall derives `{ repo }` from it; it pointed at a
fork). `cargo xtask homebrew-formula` renders Formula/qq.rb from SHA256SUMS
and the release workflow pushes it to retsu-AI/homebrew-qq when
HOMEBREW_TAP_TOKEN is set, skipping otherwise. OB6 / ENG-880.
Install guide rewritten per route with pinning and verification; README install section; release runbook covers the tap setup and install.sh constraints; OB6 ledger entry. OB6 / ENG-880.
lg2m
force-pushed
the
feat/eng-880-install-paths
branch
from
September 23, 2026 04:25
a9c7233 to
bc5e9cf
Compare
This was referenced Sep 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
OB6: one install command per platform — install.sh, Nix package, binstall, Homebrew formula generator
Spec: docs/plans/onboarding-ux.md#ob6 Linear: ENG-880 (parent ENG-875)
What changes for users
curl -fsSL https://raw.githubusercontent.com/retsu-AI/qq/main/install.sh | sh— POSIX sh, detects OS/arch, resolves the latest release (GitHub API with a redirect fallback), verifiesSHA256SUMS, installs to~/.local/bin(--dir,QQ_INSTALL_DIR), pins with--version/QQ_VERSION, never sudo, prints the PATH line for your shell (fish getsfish_add_path). Verified live against v0.1.3 from this host.nix run github:retsu-AI/qq/nix profile install github:retsu-AI/qq—packages.qq,packages.default,apps.default.nix build .#qqverified (138 s;result/bin/qq --versionembeds the rev).cargo binstall --git https://github.com/retsu-AI/qq qq—[package.metadata.binstall]matching the real archive layout (qq-vX-<target>/qq); dry-run fetches the real v0.1.3 archive. Documented with--gitbecause plaincargo binstall qqresolves a different crates.io crate.brew install retsu-ai/qq/qq—cargo xtask homebrew-formula --version X --sums SHA256SUMSrenders the formula; a guardedhomebrewrelease job pushesFormula/qq.rbtoretsu-AI/homebrew-qqwhenHOMEBREW_TAP_TOKENis set. The tap does not exist yet, so the guide says "available once the tap repository is published".How verified
bash tests/install_sh.sh(17 checks against a localhttp.serverfixture viaQQ_RELEASE_BASE_URL: install,--dir, env override, v-prefixed version, PATH hint bash/fish, no hint when on PATH, tampered checksum → exit 1 and nothing installed, unknown version, bad arg,--help); wired into CI.shellcheck -s shclean; parses under dash.ruby -c.cargo test --workspace(1730 passed),nix flake check --no-build,nix build .#qq.Notes for review
[workspace.package].repositorywashttps://github.com/lg2m/qq(a fork); changed toretsu-AI/qq— binstall needs it andqq --versionmetadata should point at the canonical repo. Root-file edit, flagged here.outputHashes);nativeBuildInputs = [cmake pkg-config]withdontUseCmakeConfigurefor aws-lc-sys;doCheck = false(documented) with aninstallCheckPhaseon--version.nix run github:…only work once this merges tomain.One-time setup after merge
Create
retsu-AI/homebrew-qq, add a fine-grained PAT (Contents: write) asHOMEBREW_TAP_TOKEN, then re-run thehomebrewjob or cut the next release (docs/runbooks/release.md § Homebrew tap).Compatibility
No protocol/schema change.