Repository navigation
tasks: versions, bump and lint:workflows are go-tools', taken by one include - #140
Merged
Merged
Conversation
…include The site pinned everything in versions.yaml and had no task that says what is behind, and no lint of its workflows. go-tools ships those tasks once (spin-stack/go-tools#135), the same names and arguments in every repository, and the Taskfile includes them. - go-tools moves to v0.20261122.4, whose cmd/task names the shared Taskfile in GO_TOOLS_TASKS. - No vars on the include: the site has no tag and no consumers.toml, so `release` and `consumers` refuse. - versions.yaml pins actionlint v1.7.12, which lint:workflows runs. The versions gate (tools/sources/repo_test.go) finds its reader in the Taskfile's comment, since the shared file is outside the tree. - gate runs lint:workflows. The three workflows pass it as they are. - sources:bump stays. `bump` moves one pin; a source's pin also needs the release to hold the screenshots, the checkout fetched and the prices and posts rewritten, which only sources:bump does. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
|
Preview of 5ca6cc9: https://tasks-shared.spinbox-docs.pages.dev/ |
go-tools v0.20261122.5 (spin-stack/go-tools#137) taught versions/gate that a Taskfile including go-tools' tasks reads the pins those tasks read, so versions.yaml's actionlint counts as read through the include. The sentence that spelled `versions version actionlint` beside it existed only for the gate to match, and is deleted. What the comment says of bump and sources:bump stays. With the pin removed tools/sources' gate test now fails naming the task: `Taskfile.yml includes go-tools' tasks, and its task lint:workflows reads actionlint: versions: there is no actionlint in versions.yaml`. Part of spin-stack/go-tools#135 Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
aledbf
added a commit
to spin-stack/go-tools
that referenced
this pull request
Nov 22, 2026
…r it A row whose upstream did not answer was a row with a note and no count. website asked without a token got a 404 for its private upstream and `1 behind` where there were 2 (spin-stack/website#140); spin-machine's qemu, pinned at 11.2.0-rc0, got `strconv.Atoi: parsing "0-rc0"` and `8 behind` with no word of it (spin-stack/machine#529). A missing token read as nothing more to bump. upstream.Status has Unread: the upstream did not answer, or answered what the pin cannot be ordered against. Behind says nothing of such a row. check marks it `not read:`, counts it apart, says how many rows the count of what is behind is of, and exits 2 where a row behind exits 1, as diff does for a file it could not read. The versions task keeps the worst status of its files, so a later file that is only behind does not hide one that was not read. A kernel series that is over was read, and so was an entry that follows another. A pin with a -suffix after its numbers is now ordered by the tags track, not refused. A release tag is numbers alone, so the comparison this package has is of numbers, and what it can say of 11.2.0-rc0 is that 11.2.0 is newer and 11.1.2 is not. A pin that starts with no number is said to be one the track cannot order, which is a row not read. Part of #135 Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
aledbf
added a commit
to spin-stack/go-tools
that referenced
this pull request
Nov 22, 2026
release exported gh's token when none was set; versions and bump did not. A repository with a private upstream - website pins spin - had to be run as `GITHUB_TOKEN=$(gh auth token) go tool task versions`, and without it the private row was a 404 (spin-stack/website#140). Both tasks now take gh's token when neither GITHUB_TOKEN nor GH_TOKEN is set. A workflow's token is left as it is and gh is not asked. Where gh is logged out or not there the task runs without a token, which release cannot: check marks what it could not read and fails for it. Part of #135 Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
aledbf
added a commit
to spin-stack/go-tools
that referenced
this pull request
Nov 22, 2026
`versions bump spin v20261024.01` moved website's pin from v20261114.01 to a release three weeks older and exited 0 (spin-stack/website#140). website's own `sources:bump` refuses that, and the rule is nobody's in particular, so it is upstream.Bump's: every repository's command that bumps through it has it. Backwards is what can be ordered. A version, by the numbers it starts with, refused before anything is fetched: that also stops a bump with no version named where the upstream's latest is older than the pin, which refresh now leaves where it is rather than failing or moving it. And a commit, for a git entry of a GitHub repository whose versions say neither way - a branch, or a commit of main moved to a tag: GitHub's compare is asked whether the pinned commit already holds the new one, which is website's rule that a pin on main moves only to a release that holds it. Where GitHub cannot be asked the bump is refused. Branches that parted are not called backwards, a version that starts with no number is not ordered, and an entry tracked with another goes where that one is. upstream.BumpBackwards, `versions bump -back` and `task bump BACK=1` are the bump of a person who means it. Part of #135 Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
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.
Why
The maintenance tasks every spin-stack repository has should mean the same thing in each one, whoever wrote the prompt that day. go-tools now ships them once (spin-stack/go-tools#135) as a Taskfile inside its release. The site pinned everything in
versions.yamland had no task that says what is behind, and nothing linted its workflows.What changed
go.mod: go-tools from the 2026-11-09 pseudo-version tov0.20261122.5. Itscmd/tasknames the shared Taskfile inGO_TOOLS_TASKS, and itsversions/gatecounts a Taskfile that includes the shared tasks as reading the pins they read (task: what the first two rollouts found: the gate sees the include, no release older than the command, scopes, a dry release go-tools#137).Taskfile.yml: one flattened include of that file.versions,bump,lint:workflows,releaseandconsumersnow exist here under the names every repository uses. The include has no vars.versions.yaml: anactionlintpin (v1.7.12, kindmodule), whichlint:workflowsruns. The gate test intools/sourcesaccepts it as read through the include, and no line of this repository spells the read.gaterunslint:workflows, so a pull request that breaks a workflow fails Gate.README.md: says which tasks are go-tools' and that a source's pin moves withsources:bump.Scope
sources:bumpandtools/sourcesare unchanged.bump NAME=spinandsources:bumpcall the same go-tools function to rewrite the entry, butsources:bumpalso refuses a release older than the pin, waits for the release to carrysite-shots.tar.gz, fetches the checkouts, and rewrites the prices and the blog list. The sharedbumpdoes none of that, so it does not replace it.Blast Radius
go tool taskcall in this repository now needs go-tools' release archive to holdtasks.yml. Per task: what the first two rollouts found: the gate sees the include, no release older than the command, scopes, a dry release go-tools#137,cmd/taskat this version asks GitHub again when its cache names a release older thanv20261122.05, so a fresh stamp no longer hides the file. It was not hit in this branch's runs.go runon the runner.sfwis built from the new go-tools version.releaserefuses (missing required variables: GATE_WORKFLOW, GATE_JOBS) andconsumersrefuses (no consumers.toml). Both are intended: the site has no tag and nobody copies from it.Verification
Run in a worktree of this branch, exit statuses read directly.
go tool task --list: exit 0, the five shared tasks listed beside the site's own.go tool task versionswith a token that reads spin: exit 201,2 behind(spin and brand), which is what the sync's pull request moves.go tool task lint:workflows: exit 0 on the three workflows. With a planted workflow usingactions/checkout@v7and an undefined expression: exit 201, actionlint's error printed.go tool task release: exit 206,missing required variables: GATE_WORKFLOW, GATE_JOBS.go tool task consumers: exit 201,no consumers.toml: this repository names nobody that copies from it.go test ./tools/sources: exit 0. Withactionlintremoved fromversions.yaml: exit 1,Taskfile.yml includes go-tools' tasks, and its task lint:workflows reads actionlint: versions: there is no actionlint in versions.yaml.go tool task gate: exit 0,linkcheck: 517 pages, every link resolves.go tool task reference:check: exit 0. Withgate, that is all ofcheck.upload,deploy,sources:bump,sync:*.Part of spin-stack/go-tools#135
🤖 Generated with Claude Code