Skip to content

build(tasks): run go-tools' task installed outside go.mod - #94

Merged
aledbf merged 1 commit into
mainfrom
task-outside-gomod
Nov 28, 2026
Merged

aledbf merged 1 commit into
mainfrom
task-outside-gomod

Conversation

@aledbf

@aledbf aledbf commented Nov 28, 2026

Copy link
Copy Markdown
Member

Every go-tools release this repository wanted was a go.mod bump and a pull request here (and in each spin-stack repository), because go.mod pinned github.com/spin-stack/go-tools/cmd/task as a tool. go-tools v20261128.01 (spin-stack/go-tools#173) ships task outside any go.mod.

What changed

  • go.mod: github.com/spin-stack/go-tools/cmd/task leaves the tool block (mockgen and deadcode stay); go-tools stays a requirement for versions/gate, moved to v0.20261128.1, the first whose gate counts the action as reading versions.yaml.
  • Workflows (go-cli.yml, release.yml, refresh.yml) and the setup-parity-runtime composite: uses: spin-stack/go-tools@116dfa6… # v20261128.01 after setup-go in every job that runs task; Dependabot's github-actions ecosystem moves the pin. parity-publish-full gets it through the composite; parity-runtime has it directly (its plan step runs before the composite; a second run installs nothing).
  • go tool task -> task everywhere it is an invocation: workflows, .goreleaser.yml's hook, the ts-oracle messages in Go and TypeScript, versions.yaml's header. The allowlists' headers and a test comment name go-tools commands by bare name.
  • README and docs/installation.md: go install github.com/spin-stack/go-tools/cmd/task@latest once.

Verified

  • task lint (go vet, golangci-lint, lint:workflows with actionlint, ctxlife, testquality, refs, mutate -stale-exempts, deadcode, taskgate, sfw check): passes.
  • taskgate fails as it should with the action step removed from refresh.yml (runs task refresh with nothing before it that installs go-tools' task), and passes with it back.
  • task test:race: passes.
  • task mutate BASE=origin/main: 14 refused, 0 survived (run with BUILDX_BUILDER=default: the local docker-container buildx builder cannot see the images the e2e tests build, unrelated to this change).

🤖 Generated with Claude Code

go.mod pinned github.com/spin-stack/go-tools/cmd/task as a tool, so every
go-tools release this repository wanted - a new Task, a shared task, a
gate - was a go.mod bump and a pull request here, and in every other
spin-stack repository.

Task is now go-tools' cmd/task installed outside the module: each
workflow job (and the setup-parity-runtime composite) uses
spin-stack/go-tools before its first `task`, which puts the latest
release's task on PATH, and Dependabot moves that pin with the other
actions. On a laptop, `go install
github.com/spin-stack/go-tools/cmd/task@latest` once. Every `go tool
task` becomes `task`. go-tools stays a requirement, at v0.20261128.1,
for versions/gate, whose gate counts the action as reading versions.yaml.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@aledbf
aledbf marked this pull request as ready for review November 28, 2026 20:37
@aledbf

aledbf commented Nov 28, 2026

Copy link
Copy Markdown
Member Author

PASS

Verified head e3438aa (independent verifier, no code changes).

  • go.mod requires go-tools v0.20261128.1 for its one importer (versions/gate). The remaining tools are mockgen and deadcode only. PASS
  • git grep "go tool task" finds nothing. git grep "go tool " finds only go tool covdata and go tool mockgen, which still resolve. PASS
  • Every job that runs task has spin-stack/go-tools@116dfa6befab594f25ad4553e375061e3fa80f27 first, directly or through .github/actions/setup-parity-runtime (16 uses). release.yml's goreleaser job installs it before goreleaser-action, whose hook now runs task release:notices. No setup-task. PASS
  • taskgate from taskgate: go.mod's task command is a finding, the action the one way go-tools#174 (origin/task-outside-gomod-2 @ 9021810), run with go-tools' task (3.54.0) first on PATH. It was first shown to fail on a planted go.mod tool line and a workflow job with its go-tools step removed (both reported as common:). -common (as the Taskfile runs it) reports OK with no common: findings. PASS
  • task lint, TMPDIR on disk, exit 0. go test ./internal/devtools/... ./internal/exec/... ./internal/tsoracle/... passes. PASS
  • CI on the head is 11 success and 2 skipped.
  • Skipped the parity runtime/network, e2e and release lanes (Docker, publish).

🤖 Generated with Claude Code

@aledbf
aledbf merged commit 13af565 into main Nov 28, 2026
13 checks passed
@aledbf
aledbf deleted the task-outside-gomod branch November 28, 2026 21:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant