Repository navigation
fix(deps)!: upgrade avalanchego to v1.15.3 for Go 1.27 - #67
Merged
Merged
Conversation
Binaries built with Go 1.27+ panic at startup: failed to decode checkpoints.json: first and last characters should be quotes Go 1.27 enables encoding/json v2 by default, which passes map keys to UnmarshalText unquoted. The pinned avalanchego's ids.ID.UnmarshalText delegated to UnmarshalJSON, which requires quotes, so genesis init failed. avalanchego v1.15.3 fixes this (ava-labs/avalanchego#6297). Adapt to v1.15 API changes: - vms/platformvm/txs is renamed to vms/platformvm/platform - cb58.Decode takes a max payload length; pass PrivateKeyLen go.mod now declares go 1.26.10 with no toolchain line, matching avalanchego. Also correct the C-Chain await comments for the v1.15.3 wallet behavior.
avalanchego v1.15.3 links github.com/ava-labs/firewood-go/ffi through wallet/chain/c. firewood ships prebuilt libraries only for linux/amd64, linux/arm64 and darwin/arm64, so darwin/amd64 cannot link. avalanchego itself lists darwin/amd64 as not supported. install.sh now resolves Apple Silicon under Rosetta 2 to arm64 and reports a clear error when a release asset is missing. BREAKING CHANGE: releases no longer include a darwin/amd64 (Intel Mac) binary.
Use setup-go's go-version-file and GOTOOLCHAIN=local instead of hardcoding 1.26.10 in each workflow. go.mod becomes the single source of the Go version, as in avalanchego.
Go 1.27+ enables encoding/json v2 by default. Running the smoke tests with GOEXPERIMENT=jsonv2 on the pinned toolchain catches JSON decoding regressions, such as the checkpoints.json startup panic, without installing a newer Go.
Require Go 1.26.10+ to match go.mod and avalanchego, note the cgo requirement, and list supported platforms.
govulncheck flags GO-2026-6859 (net/http) in Go 1.26.10. Go 1.26.11 fixes it, but also rejects cgo link objects with LLVM LTO sections. firewood-go/ffi v0.9.0 ships such libraries, so the build fails. Bump the go directive to 1.26.11 and firewood-go/ffi to v0.9.1, which strips the LTO sections. The ffi Go API is unchanged.
owenwahlgren
approved these changes
Nov 23, 2026
0xstt
approved these changes
Nov 23, 2026
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.
Summary
go install github.com/ava-labs/platform-cli@mainwith Go 1.27+ produces a binary that panics on every command:Root cause: Go 1.27 enables
encoding/jsonv2 by default, which passes map keys toUnmarshalTextunquoted. The pinned avalanchego'sids.ID.UnmarshalTextdelegated toUnmarshalJSON, which requires quotes, so genesisinit()fails. avalanchego v1.15.3 fixes this (ava-labs/avalanchego#6297).Changes
v1.14.3-0.20260717…→v1.15.3. API updates:platformvm/txs→platformvm/platform,cb58.Decode(s, PrivateKeyLen).firewood-go/ffi, which has no Intel-Mac library; avalanchego doesn't support darwin/amd64 either.install.shmaps Rosetta shells to arm64 and explains missing assets.go.mod(go 1.26.10, parity with avalanchego). New smoke-test step withGOEXPERIMENT=jsonv2guards against this regression without needing Go 1.27.Type of Change
fix- Bug fixTesting
go vet,staticcheck,go test -race ./...and the clie2e smoke tests pass. linux/amd64 and linux/arm64-tags ledgerrelease builds succeed.mainwith Go 1.27.1 and withGOEXPERIMENT=jsonv2; both pass on this branch.Nightly Network E2Edispatch on this branch before merging.Notes
net/http, Go 1.26.10 stdlib, fixed in 1.26.11). The same finding exists onmain; we're staying on 1.26.10 for parity until avalanchego bumps.