Go 1.26.2 does not exist, and Go 1.24.13 refuses to proceed when the required version is higher than what is installed.
banaworld
FREEOP

a month ago

Update problem the go directive in bot/go.mod from "go 1.26.2" to "go 1.24" to match the Dockerfile's golang:1.24-alpine base image. The build fails because Go 1.26.2 does not exist, and Go 1.24.13 refuses to proceed when the required version is higher than what is installed. This same error has caused multiple consecutive deployment failures.

$10 Bounty

2 Replies

Status changed to Open Railway about 1 month ago


banaworld
FREEOP

a month ago

🎁


i-smuglov
FREE

a month ago

Check your full go.mod.

Correct version should look like:

module your-module

go 1.24

or:

module your-module

go 1.24

toolchain go1.24.13

Also check for:

  • go.work
  • nested modules
  • CI env vars:
    • GOTOOLCHAIN
    • GO_VERSION
  • Railway build cache

Useful debug commands:

cat go.mod
cat go.work
go version
go env GOTOOLCHAIN
grep -R "1.26" .

That last command usually finds the hidden culprit immediately.


Welcome!

Sign in to your Railway account to join the conversation.

Loading...