GeezerVison is showing github.com — CI: goreleaser workflow fails in setup on the next tag push — go-version-file points at go.work, deleted in Feb 2024 · Issue #344 · developing-today/code
CI: goreleaser workflow fails in setup on the next tag push — go-version-file points at go.work, deleted in Feb 2024 #344DescriptionProblem
The goreleaser workflow (.github/workflows/goreleaser.yml, triggered on every tag push on.push.tags: ['*']) cannot get past its Set up Go step on current main: it asks actions/setup-go to read a Go version file that no longer exists in the repo.
Evidence (verified on origin/main ff21d17)
.github/workflows/goreleaser.yml:62-67 — the only job that builds a release uses actions/setup-go@v4 with:
go-version-file: "${{ matrix.working-directory }}/go.work" — the matrix's only entry is { working-directory: "." } (line 43), so this is ./go.work
cache-dependency-path: "${{ matrix.working-directory }}/go.work.sum" — i.e. ./go.work.sum
- Neither file exists on
main: git ls-tree -r origin/main --name-only | grep go.work returns only lib/go.work.template (a template for a different layout — it references ./code/sources/... and ./charm — not a usable root go.work).
- History:
go.work was added 2023-11-06 (c8fe4ea) and deleted 2024-02-06 in 8ec08d0 ("integrate charm"). The last GitHub release is v1.2.7 (2023-11-15), i.e. before the deletion — so this has never fired since the file went away, and the break is dormant only because no tag has been pushed since.
actions/setup-go fails the step when the go-version-file path does not exist ("The specified go version file at: go.work does not exist"), so the next tag push fails in setup, before GoReleaser ever runs — the same shape as the Jules jules-action@v1 setup failures (CI: all Jules workflows fail in setup — jules-action@v1 does not exist (upstream has no v1 tag) #258).
- Contrast: every other workflow in this repo points
go-version-file at a file that exists — pkgs/graph/go.mod (mod-tidy.yml:32), pkgs/map/go.mod, pkgs/identity/go.mod, pkgs/mcpx/go.mod, pkgs/<module>/go.mod (go-modules-build.yml:65).
- Secondary staleness in the same file: it pins
actions/checkout@v4, actions/setup-go@v4 and goreleaser/goreleaser-action@v5, while the rest of the repo's workflows use actions/checkout@v7 / actions/setup-go@v7.
Why it matters
Tag pushes are rare and deliberate — they are release events. Discovering at release time that the release workflow has been broken since February 2024 means either a scrambled fix under time pressure or a silently skipped release. Dormant workflows that cannot run are worse than no workflow: they look like a release path exists.
Note: even with setup fixed, the release build itself targets pkgs/graph (.goreleaser.yaml: dir: sources/graph, and sources is a symlink to pkgs/), whose build currently fails for the separate reason tracked in #166 — so a full green release also depends on #166, or on retargeting/retiring the config.
Acceptance criteria
Pick one direction and land it:
- Repair —
go-version-file and cache-dependency-path point at files that exist on main (most naturally pkgs/graph/go.mod / pkgs/graph/go.sum, the module .goreleaser.yaml actually builds); action versions aligned with the repo's other workflows; and the workflow is proven runnable without a real release (e.g. a workflow_dispatch dry-run / GoReleaser check or snapshot run that gets past setup), or
- Retire — delete
.github/workflows/goreleaser.yml and .goreleaser.yaml deliberately, so nobody relies on a release path that does not exist.
Either way: no workflow file in the repo references a go-version-file / cache-dependency-path that is absent from the tree it runs against.
Dedup / related
Activitydezren39 commented on Oct 21, 2026 Fixed by PR #452 (merged 4e879ca) — REPAIR direction. Post-merge proof: workflow_dispatch run 39532481356 on merged main succeeded: Set up Go read pkgs/graph/go.mod (spec 1.24 → go1.24.13; previously it failed on the missing ./go.work), the dispatch args resolved to release --snapshot --clean, and GoReleaser reported release succeeded after 2m42s with all 12 archives produced. The same snapshot was also run locally pre-merge with the pinned v2.18.3 binary (succeeded, 10m55s), and goreleaser check now validates the migrated v2 config clean.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|