From c4fba116d12687c1995acddfd0d80c5c059680a1 Mon Sep 17 00:00:00 2001 From: Manuel de Brito Fontes Date: Sun, 22 Nov 2026 14:57:19 -0300 Subject: [PATCH] tasks: the include states that the site does not release, and the sources say what moves them go-tools v20261122.06 cuts a release only where a repository's include says how, in a map var named RELEASE. The site has no tag and no release: pages.yml uploads every push to main to Cloudflare Pages. The include now says so with `none`, and `go tool task release` refuses with that sentence, whatever the command line or the environment holds. spin, spin-terraform-aws and brand say `bump: go tool task sources:bump` in versions.yaml. The shared `bump` refuses the three and names the command, and `versions` says it in each row. tools/sources still moves them: go-tools' upstream.Bump does not read the field. go-tools moves to v0.20261122.6 in the same commit, since an older versions refuses a file with the field. Co-Authored-By: Claude Fable 5.2 --- README.md | 3 ++- Taskfile.yml | 15 ++++++++++----- go.mod | 2 +- go.sum | 4 ++-- versions.yaml | 3 +++ 5 files changed, 18 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index fd0d81b..b0482ea 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,8 @@ gate`, which fails first on an install that skips the firewall (`sfw check`), a that is not one task (`taskgate`), or a workflow actionlint refuses or that uses an action by a tag (`task lint:workflows`). That task, `versions` (which pins are behind) and `bump NAME=` are go-tools' own, the same in every spin-stack repository: the Taskfile includes them and -defines none. A source's pin moves with `task sources:bump`, below, not with `bump`. +defines none. A source's pin moves with `task sources:bump`, below: its entry in `versions.yaml` +says so (`bump:`), and `bump` refuses it. - **The sources are pinned** in `versions.yaml`, go-tools' versions format, held by `tools/sources/repo_test.go` as every spin-stack repository is: spin, spin-terraform-aws and diff --git a/Taskfile.yml b/Taskfile.yml index 0aceb9b..8db5fd2 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -25,16 +25,21 @@ vars: GID: sh: id -g -# versions, bump, lint:workflows, release and consumers are go-tools' (its cmd/task/tasks.yml), -# the same in every spin-stack repository. No vars: the site cuts no release and nobody copies -# from it, so release and consumers refuse here. +# versions, bump, lint:workflows, release and consumers are go-tools' (its +# internal/tasks/tasks.yml), the same in every spin-stack repository. Nobody copies from the +# site, so consumers refuses here. # -# bump moves any one pin and nothing else. A source's pin (spin, spin-terraform-aws, brand) moves -# with sources:bump, which also refuses a release the site cannot take yet and fetches it. +# bump moves any one pin but a source's. spin, spin-terraform-aws and brand say in versions.yaml +# (bump:) that sources:bump moves them, which also refuses a release the site cannot take yet +# and fetches it; bump refuses them and names it. includes: common: taskfile: "{{.GO_TOOLS_TASKS}}" flatten: true + vars: + RELEASE: + map: + none: "pages.yml uploads every push to main to Cloudflare Pages, so the site is deployed and no tag or release names a version of it" tasks: # The images are versions.yaml's (versions args). GITHUB_TOKEN, when set, is what sfw downloads diff --git a/go.mod b/go.mod index 997fedd..9617eb3 100644 --- a/go.mod +++ b/go.mod @@ -7,7 +7,7 @@ toolchain go1.27.3 require ( github.com/hashicorp/hcl/v2 v2.20.1 github.com/hashicorp/terraform-config-inspect v0.0.0-20260904064934-75d64de68c31 - github.com/spin-stack/go-tools v0.20261122.5 + github.com/spin-stack/go-tools v0.20261122.6 github.com/zclconf/go-cty v1.14.4 ) diff --git a/go.sum b/go.sum index e728001..71d0e65 100644 --- a/go.sum +++ b/go.sum @@ -30,8 +30,8 @@ github.com/opencontainers/image-spec v1.1.1 h1:y0fUlFfIZhPF1W537XOLg0/fcx6zcHCJw github.com/opencontainers/image-spec v1.1.1/go.mod h1:qpqAh3Dmcf36wStyyWU+kCeDgrGnAve2nCC8+7h8Q0M= github.com/sirupsen/logrus v1.9.4 h1:TsZE7l11zFCLZnZ+teH4Umoq5BhEIfIzfRDZ1Uzql2w= github.com/sirupsen/logrus v1.9.4/go.mod h1:ftWc9WdOfJ0a92nsE2jF5u5ZwH8Bv2zdeOC42RjbV2g= -github.com/spin-stack/go-tools v0.20261122.5 h1:KsHTqIpBGuCc2kyB+0xn6oU+QiiSerC3fuWRJ1KoesA= -github.com/spin-stack/go-tools v0.20261122.5/go.mod h1:E+Fw4T6GukPSmPlRNFT3OymrKnHzTGX1efcz1+l812c= +github.com/spin-stack/go-tools v0.20261122.6 h1:iL4HeSKi6TR6zai1WyGOnHq2/M6WqI6rIyeIGMQGMQ8= +github.com/spin-stack/go-tools v0.20261122.6/go.mod h1:E+Fw4T6GukPSmPlRNFT3OymrKnHzTGX1efcz1+l812c= github.com/stretchr/testify v1.12.1 h1:EuwCh5fleGS7H32xRwO3wRGT7DxrDhLAT6FF8MpWDWE= github.com/stretchr/testify v1.12.1/go.mod h1:MDEgiDPPsNp5cuIrHPPCyornHKgEVbtFUmoNlxoYthg= github.com/zclconf/go-cty v1.14.4 h1:uXXczd9QDGsgu0i/QFR/hzI5NYCHLf6NQw/atrbnhq8= diff --git a/versions.yaml b/versions.yaml index a6fd2b2..2eb2a86 100644 --- a/versions.yaml +++ b/versions.yaml @@ -10,6 +10,7 @@ version: v20261114.01 pin: 51f7e0dea53e6f85aa855753766b688634487168 track: github-release + bump: go tool task sources:bump note: >- The release the site documents (D2: the newest, exactly). The daily sync moves it to the next release, never back to an older one; spin main past it is in spin's "Site vs spin main" @@ -21,6 +22,7 @@ version: v20261027.02 pin: 358445c95280923876ef3e95658fe45e367462a1 track: github-release + bump: go tool task sources:bump note: >- The module the AWS pages describe and pin, and images.json, the releases an installation can run. Fetched with its tags: a page names the newest release the commit holds. @@ -31,6 +33,7 @@ version: main pin: c84791b70202e4ad1fe79fadef3217b13d5daf14 track: branch + bump: go tool task sources:bump note: >- The palette and the logos. brand cuts no releases, so its main is what it has to say. The dashboard's screenshots are not brand's: they are spin's release's, site-shots.tar.gz.