Repository navigation
Tools as released binaries: go tool task runs the pinned Task with go-tools on its PATH - #100
Merged
Merged
Conversation
A download's source may say {os} and {arch}, with pins: a sha256 per
os/arch in place of pin. For is the entry as one platform has it, which
is what fetch and Pinned read; a bump hashes every platform's file and
rewrites each pin in place. github-release takes a tag prefix:
github-release <repo> bin- reads bin-20261109.193146 as 20261109.193146.
Refs #99
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…sitory compiles cmd/task is what a go.mod takes as `go tool task`: it puts versions.yaml's task and go-tools for this platform in the user cache, held to their sha256 and unpacked once (internal/toolcache), and execs Task with the tools first on its PATH. versions/gate counts both entries as read by it, and holds go-tools to the commit go.mod requires: one commit for the packages and the commands. ci.yml's release job builds every command but task for four platforms, reproducibly, attests them and publishes bin-<commit UTC time>. proven reads an artifact uploaded unarchived as its one file: a run's trace.json made flakes fail with "the artifact is not a zip". Closes #99 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…hat nothing refused Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…here Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 9, 2026
Merged
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.
Closes #99
Repositories will stop compiling Task and go-tools' commands: they get the released binaries, pinned by sha256 in
versions.yaml.What's in it
versions.yaml, additive.downloadentry can say{os}and{arch}in its source and havepins:, a sha256 peros/arch, in place ofpin.Entry.Foris one platform's view of the entry;fetchandPinneduse this machine's.github-release <repo> <prefix>reads releases named<prefix><version>.cmd/task. A repository'sgo.modtakes it asgo tool task.versions.yaml(cwd upwards) and puts itstaskandgo-toolsin the user's cache, verified by sha256 and unpacked once per pin (internal/toolcache, safe when two processes race).PATH(replacing it, not duplicating it) and execs Task.versionsandinternal/fetch.versions/gate. Withcmd/taskingo.mod, it countstaskandgo-toolsas read, and requiresgo-tools' version to be the time ingo.mod's go-tools pseudo-version: one commit for the packages and the commands.releasejob inci.yml, after the Gate, only on pushes to main.task release:buildbuilds every command excepttaskfor linux/amd64, linux/arm64, darwin/amd64 and darwin/arm64, reproducibly: two builds give the same sha256.actions/attest-build-provenanceattests the archives.task release:publishpublishesbin-<commit's UTC time>; a retried run doesn't publish twice.proven. An artifact uploaded witharchive: false, like a run'strace.json, is read as its one file.proven flakesused to fail on it with "the artifact is not a zip".versions.yamlreference, getting started, and the README.Why
From go-tools#99: Task as a
toolis ~375 modules and go-tools' tools ~70; brand goes from 451 to 5 modules without them. shipset'sgo tool task testspent 94 s on downloads and compiling before the first test.Checked
task lint,task testandtask sitepass.go run ./cmd/mutate -base origin/main -max 600: 182 mutations, 0 survived.release:buildran locally: 18 commands, about 40–44 MB per platform.The first release appears when this merges, and each repository moves to it in its own PR.
🤖 Generated with Claude Code