Revert Go downgrade; keep Go 1.26 per maintainer mandate
Undoes the go.mod/setup-go pin to 1.25 from the previous commit. The maintainer requires Go 1.26. The TinyGo net/http wasm build failure is an upstream toolchain bug (tinygo-org/tinygo#5467) and is being resolved separately without changing the Go version. Not pushed pending the toolchain-fix decision (issue #26). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -33,21 +33,14 @@ jobs:
|
||||
- name: Check out repository
|
||||
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
||||
|
||||
# Pinned to Go 1.25 (not 1.26) to match TinyGo. TinyGo 0.41.1's bundled
|
||||
# net/http override (roundtrip_js.go) fails to compile against the Go 1.26
|
||||
# stdlib -- "t.roundTrip undefined ... has method RoundTrip"
|
||||
# (tinygo-org/tinygo#5467, unfixed in any tagged TinyGo release as of
|
||||
# 0.41.1). Go 1.25.x is the newest line TinyGo 0.41.1 fully supports. The
|
||||
# go.mod `go` directive is pinned to 1.25 too, so GOTOOLCHAIN won't
|
||||
# auto-upgrade. go vet/test also run on this version.
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0
|
||||
with:
|
||||
go-version: '1.25'
|
||||
go-version: '1.26'
|
||||
|
||||
# TinyGo is needed only for the Wasm Worker build (pnpm run build).
|
||||
# install-binaryen (default true) provides wasm-opt, which TinyGo invokes
|
||||
# for the -target wasm build.
|
||||
# TinyGo is needed only for the Wasm Worker build (pnpm run build). The
|
||||
# 0.41.x line is the first with Go 1.26 support; install-binaryen (default
|
||||
# true) provides wasm-opt, which TinyGo invokes for the -target wasm build.
|
||||
- name: Set up TinyGo
|
||||
uses: acifani/setup-tinygo@dd8a7075d951a7595b2ef2123ed0ab1af0c13e56 # v3.0.0
|
||||
with:
|
||||
|
||||
@@ -64,10 +64,7 @@ This runs the exact handler the deployed Worker uses, minus the Workers runtime.
|
||||
### Build & run the real Worker (requires TinyGo)
|
||||
|
||||
Node tooling is managed with **pnpm**; wrangler is a dev dependency. The Wasm
|
||||
build uses [TinyGo](https://tinygo.org) 0.41.1 on the Go 1.25.x toolchain.
|
||||
(TinyGo 0.41.1 cannot compile `net/http` against Go 1.26 — see
|
||||
[tinygo-org/tinygo#5467](https://github.com/tinygo-org/tinygo/issues/5467) —
|
||||
so the module pins `go 1.25` in `go.mod`; CI installs and enforces this.)
|
||||
build uses [TinyGo](https://tinygo.org) 0.35.0+.
|
||||
|
||||
```console
|
||||
pnpm install # install wrangler
|
||||
|
||||
Reference in New Issue
Block a user