Skip to content

Releases: cushycush/stock

v0.4.0

Choose a tag to compare

@github-actions github-actions released this 25 Apr 18:14
Release 0.4.0

Cuts the release that includes the read-only `stock tui` dashboard,
`make dogfood` for container-based real-manager testing, the apt
empty-cache fix, and the README restructure. Code has been on main
since April 22 but no tag was pushed, so AUR / Nix / GitHub release
artifacts and `go install @latest` users have been stuck on 0.3.1
without a TUI. This unblocks them.

v0.3.1

Choose a tag to compare

@github-actions github-actions released this 22 Apr 08:56

First release installable from AUR, Nix, and GitHub prebuilt binaries.

Install

Arch Linux (AUR)

yay -S stock         # source build
yay -S stock-bin     # prebuilt
yay -S stock-git     # tip-of-main

Nix (flake)

nix run github:cushycush/stock -- doctor
nix profile install github:cushycush/stock

Go

go install github.com/cushycush/stock/cmd/stock@v0.3.1

Prebuilt binaries — attached below for linux/darwin/windows on amd64/arm64.

From v0.3.0 (skipped)

v0.3.0's release workflow failed with a missing `go.sum` entry for `golang.org/x/term` — a transitive dep pulled in by the store-core v0.2.0 bump that our local workspace resolved through a sibling `go.work`. v0.3.1 fixes `go.sum` via `GOWORK=off go mod tidy`. No other changes.

From v0.2.0

  • Arch Linux (AUR) distribution via three packages: `stock` (source), `stock-bin` (prebuilt), `stock-git` (tip-of-main). The release workflow pushes `stock` and `stock-bin` automatically on every tag.
  • Nix flake — `nix run`, `nix profile install`, and a pinned Go + gopls dev shell.
  • GitHub release binaries — cross-compiled zips for linux/darwin/windows on amd64/arm64.
  • CI — `go test` + `go build` on ubuntu/macos/windows for every push and PR.
  • `stock version` reports the build-time-injected version string.

v0.2.0

Choose a tag to compare

@cushycush cushycush released this 22 Apr 07:58

Changed

  • stock now styles its CLI output — doctor manager chips, drift/unservable reports, diff + markers, bootstrap phase headers, and snapshot warnings all render in color through the shared store-core/ui module. Output matches store's look; styling auto-disables on non-terminal stdout and honors NO_COLOR / FORCE_COLOR.
  • Requires store-core v0.2.0.

Visual before/after

Before: pacman: missing: ripgrep

After: [warn] pacman missing: ripgrep (chip and manager bolded; [warn] dim yellow)

Install

go install github.com/cushycush/stock/cmd/stock@v0.2.0

v0.1.0

Choose a tag to compare

@cushycush cushycush released this 22 Apr 07:36

First tagged release. Package/tool/runtime installer, companion to store.

Highlights

  • Reads .store/packages.yaml; groups map manager keys (brew, apt, pacman, …) to package lists, with optional when: filters that accept either a YAML scalar or a list (os: linux or os: [linux, darwin]).
  • Supported managers: brew, brew-cask, apt, pacman, dnf (falls back to yum), zypper, apk, winget, cargo, go, npm, pipx, gem. Cross-platform "alternatives" in one group are expected — stock runs whichever manager is available.
  • Commands: install, diff, doctor, snapshot, platform, bootstrap. --dry-run on install and bootstrap.
  • Git-style subcommand dispatch: unknown commands fall back to stock-<name> on $PATH.
  • Hooks under .store/hooks/ run with the shared STORE_* env contract from store-core.

Install

go install github.com/cushycush/stock/cmd/stock@v0.1.0

Testing

Unit test coverage focuses on the load-bearing pieces: config 96%, runner 87%, plus full coverage of plan orchestration (when: filtering, cross-group aggregation, unavailable-manager silent skip, unknown-key warnings) and RunInstall happy / error paths. Real manager shell-outs are not unit tested.

See the README for config examples and the full command reference.