Skip to content

Latest commit

 

History

History
164 lines (113 loc) · 6.74 KB

File metadata and controls

164 lines (113 loc) · 6.74 KB

Install (source of truth)

One Curbpack product for Windows, macOS, and Linux. Same golden path after install:

install → doctor → demo [--open] → scan → init → check → share [--bundle] → (human) attest
# after OS update / PATH loss:
doctor → doctor --repair → full reinstall only if binary missing

Not conformity assessment. Not CE marking. Not a notified-body opinion.

Pin sentence: the install script on main downloads binary v0.5.5; the GitHub Action pin (@v0.5.2) moves separately — no retag in doc-only PRs.

Install pin (binary): smoke-verified v0.5.5 when scripts/install-manifest.json default_version equals scripts/release-gate.json version with all verification flags true.
Action: GitHub Action runners are Linux/macOS only — pin @v0.5.2 until human tabletop approves bump (separate from CLI install pin). Local Windows CLI is supported.
MCP sidecar: optional Unix IPC example at examples/mcp/ — golden path never requires it.
Deferred: npm publish, winget, windows/arm64, pwsh completion.

Installation is provided from the canonical Curbpack release repository. Ladder 0 uses the maintained installer on main, which downloads the smoke-verified release binary (currently v0.5.5).

Module / Action note: public clone, install scripts, releases, and GitHub Action live on RI-SE/curbpack — pin RI-SE/curbpack@v0.5.2. The Go module path remains github.com/afelin/curbpack until a future semver-major migration (wave 2); with the development repo private, strangers should prefer the binary installers above — go install github.com/afelin/curbpack/... is not a reliable public path.

Stuck? Troubleshooting.


Three ladders × both OS families

Ladder 0 — Read-only scan (install + scan)

Inside any git repository — no init, no files written. Requires v0.5.3 or newer (scan ships in v0.5.3+; current curl default is v0.5.5).

macOS / Linux

curl -fsSL https://raw.githubusercontent.com/RI-SE/curbpack/main/scripts/install.sh | sh
cd /path/to/your/git/repo
curbpack scan

Windows (PowerShell)

irm https://raw.githubusercontent.com/RI-SE/curbpack/main/scripts/install.ps1 | iex
cd C:\path\to\your\git\repo
curbpack scan

Shows open gate signals against the CRA-shaped default pack (cra-baseline), Art 14 reporting clock, and product hint. Not conformity assessment. See also: Art 14 reporting vs handling (campaign page ships separately).

Ladder 1 — Download + run installer (recommended)

macOS / Linux

curl -fsSL -o /tmp/curbpack-install.sh https://raw.githubusercontent.com/RI-SE/curbpack/main/scripts/install.sh
sh /tmp/curbpack-install.sh
curbpack doctor

Windows (PowerShell)

irm https://raw.githubusercontent.com/RI-SE/curbpack/main/scripts/install.ps1 -OutFile $env:TEMP\curbpack-install.ps1
powershell -ExecutionPolicy Bypass -File $env:TEMP\curbpack-install.ps1
curbpack doctor

Ladder 2 — One-liner pipe

macOS / Linux

curl -fsSL https://raw.githubusercontent.com/RI-SE/curbpack/main/scripts/install.sh | sh

Windows (PowerShell)

irm https://raw.githubusercontent.com/RI-SE/curbpack/main/scripts/install.ps1 | iex

If ExecutionPolicy blocks scripts, use Ladder 1 with -ExecutionPolicy Bypass, or:

Set-ExecutionPolicy -Scope CurrentUser RemoteSigned

Ladder 3 — Manual binary + checksums

For locked-down or offline assessor laptops: receive the release binary as a file (email attachment, USB, or internal file drop) together with checksums.txt, verify sha256 fail-closed, then place on PATH — same steps as below. No installer required. See also buyer evidence and for reviewers.

  1. Open the release for pin v0.5.5: https://github.com/RI-SE/curbpack/releases/tag/v0.5.5
  2. Download the asset for your OS from the manifest (curbpack_darwin_*, curbpack_linux_*, or curbpack_windows_amd64.exe) and checksums.txt.
  3. Verify sha256 (fail closed if mismatch).
  4. Place the binary on PATH (~/.local/bin or %LOCALAPPDATA%\Programs\Curbpack).
  5. On Windows, copy curbpack.exe to curb.exe (alias). On Unix, ln -s curbpack curb.
  6. Write install marker (or run curbpack doctor --repair after a scripted install).

Checksum verify examples:

# macOS / Linux
grep -E 'curbpack_linux_amd64$' checksums.txt
sha256sum curbpack_linux_amd64   # or shasum -a 256
# Windows
Get-FileHash -Algorithm SHA256 .\curbpack_windows_amd64.exe
Select-String -Path checksums.txt -Pattern 'curbpack_windows_amd64.exe'

What installers guarantee

Guarantee Detail
Fail-closed checksum Half-download / missing checksums.txt → refuse
Atomic replace Temp → verify → .new → replace (Windows access-denied → clear message)
Marker Schema curbpack-install-marker:1 — Unix ~/.local/share/curbpack/; Windows %LOCALAPPDATA%\Programs\Curbpack\
Alias curb / curb.exe beside binary
PATH Unix: print export hint; Windows: persist User PATH via [Environment]::SetEnvironmentVariable
No silent auto-update Repair never downloads

Env overrides: CURBPACK_VERSION, CURBPACK_INSTALL_DIR, optional GITHUB_TOKEN.

Repo override (advanced): CURBPACK_REPO defaults to RI-SE/curbpack. Non-canonical values are refused unless you also set CURBPACK_REPO_I_UNDERSTAND=1 (do not use afelin/curbpack for stranger installs — private fork; assets often 404).


Repair (local only)

curbpack doctor --repair
curbpack doctor --repair
# or
.\install.ps1 -Repair

Re-asserts install dir on PATH + refreshes curb alias. No network. Exit 2 if binary missing → print install command. Defender quarantine or deleted exe → full reinstall (Ladder 1–3), not repair.


SmartScreen / Unblock-File / Gatekeeper

OS Symptom Ladder
Windows SmartScreen blocks Properties → Unblock, or Unblock-File, or Ladder 3 after checksum
Windows ExecutionPolicy Ladder 1 Bypass / CurrentUser RemoteSigned
macOS Gatekeeper System Settings → Privacy, or xattr -d com.apple.quarantine after checksum verify
Any Binary missing after “AV” Full reinstall; see troubleshooting

Next

curbpack doctorcurbpack demo → product repo scaninitcheckshare.
Audience paths: 60-second paths.