plentico / plenti

Static Site Generator with Go backend and Svelte frontend
https://plenti.co
Apache License 2.0
985 stars 50 forks source link

Broken build: invalid go version '1.21.0': must match format 1.23 #298

Closed jimafisk closed 7 months ago

jimafisk commented 7 months ago

Build: https://github.com/plentico/plenti/actions/runs/6786634954/job/18447600258

Errors:

Error: /home/runner/work/plenti/plenti/go.mod:3: invalid go version '1.21.0': must match format 1.23
Error: /home/runner/work/plenti/plenti/go.mod:5: unknown directive: toolchain
  ⨯ release failed after 0s                  error=hook failed: go mod download: exit status 1; output: go: errors parsing go.mod:
Error: /home/runner/work/plenti/plenti/go.mod:3: invalid go version '1.21.0': must match format 1.23
Error: /home/runner/work/plenti/plenti/go.mod:5: unknown directive: toolchain

Error: The process '/opt/hostedtoolcache/goreleaser-action/1.22.0/x64/goreleaser' failed with exit code 1
jimafisk commented 7 months ago

New failed build: https://github.com/plentico/plenti/actions/runs/6786874430/job/18448395151

It appears that running go mod tidy removed esbuild which is needed for go generate to preprocess the svelte compiler:

Error: defaults/compiler/compiler_generator.go:3: running "go": exit status 1
    • took: 16s
  ⨯ release failed after 18s                 error=hook failed: go generate ./...: exit status 1; output: no required module provides package github.com/evanw/esbuild/cmd/esbuild; to add it:
    go get github.com/evanw/esbuild/cmd/esbuild
Error: defaults/compiler/compiler_generator.go:3: running "go": exit status 1

Error: The process '/opt/hostedtoolcache/goreleaser-action/1.22.0/x64/goreleaser' failed with exit code 1