79622649

Date: 2025-05-15 05:03:10
Score: 1
Natty:
Report link

The cmd go mod tidy looks for the most recent go version that the packages we import use and updates go.mod accordingly. This is why we see go 1.23 revert to go 1.23.0 as mentioned here.

The reason is that when we import a module then we are forced to use a more recent Go version than the one in the go.mod file, for example we depend on golang.org/x/tools v0.25.0 which uses Go version 1.22.0, so we need to specify at least 1.22.0 ourselves.

I went through each package and identified those using go 1.23.0. I then replaced them with the version that uses go 1.xx like 1.19. After that, I ran go mod tidy and then ignite chain serve, and the error resolved.

Here’s the go.mod file

Reasons:
  • Contains signature (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Peter