From 421708ca5d6977dc87f458d27ed4c508f1cf7c51 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 11 Aug 2026 18:30:22 +0000 Subject: [PATCH] build: install as github.com/emoss08/assay@latest The module has exactly one binary, so the cmd/assay directory bought nothing but a longer install path. Move main.go to the module root and the tool installs under the name people already know it by: go install github.com/emoss08/assay@latest Update the clone-and-build instructions, the plain-build variant, the BENCHMARKS reproduction steps, and the release workflow's cross-compile target to match. CI builds ./... and needs no change. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_01YGGGHdy2bd4q7XKKExEDR5 --- .github/workflows/release.yml | 2 +- BENCHMARKS.md | 2 +- README.md | 6 +++--- cmd/assay/main.go => main.go | 0 4 files changed, 5 insertions(+), 5 deletions(-) rename cmd/assay/main.go => main.go (100%) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7503745..c8e9aeb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -49,7 +49,7 @@ jobs: GOOS="$goos" GOARCH="$goarch" go build \ -trimpath \ -ldflags "-s -w -X github.com/emoss08/assay/internal/cli.Version=${version}" \ - -o "dist/${name}/${binary}" ./cmd/assay + -o "dist/${name}/${binary}" . cp README.md "dist/${name}/" cp LICENSE "dist/${name}/" diff --git a/BENCHMARKS.md b/BENCHMARKS.md index 42c7538..318f172 100644 --- a/BENCHMARKS.md +++ b/BENCHMARKS.md @@ -444,7 +444,7 @@ one per 50 ms, so callback frequency never affects collection throughput. ```bash go test -run '^$' -bench . ./internal/graph/ ./internal/cache/ -go build -o /tmp/assay ./cmd/assay +go build -o /tmp/assay . /tmp/assay index --quiet /tmp/assay select -v # after an edit /tmp/assay verify diff --git a/README.md b/README.md index 72e256f..3030a6c 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ See [BENCHMARKS.md](BENCHMARKS.md). **Go install** — one command, any platform: ```bash -go install github.com/emoss08/assay/cmd/assay@latest +go install github.com/emoss08/assay@latest ``` The binary lands in `go env GOBIN` (default: `$(go env GOPATH)/bin`) under the @@ -95,7 +95,7 @@ works.) ```bash git clone https://github.com/emoss08/assay cd assay -go install ./cmd/assay +go install . ``` Prefer `go install` over `go build -o `: a hand-written output path @@ -109,7 +109,7 @@ applied at print time, and assay never interrogates the terminal with escape round-trips — but if you want the styling engine out of the binary entirely: ```bash -go install -tags assay_plain ./cmd/assay +go install -tags assay_plain . ``` The plain build keeps the same colors, bars and alignment with stdlib-only diff --git a/cmd/assay/main.go b/main.go similarity index 100% rename from cmd/assay/main.go rename to main.go