burnt-labs / docs

3 stars 15 forks source link

Update Go Version to 1.20 for IBC-Apps Compatibility #10

Closed papadritta closed 4 months ago

papadritta commented 4 months ago

This PR updates the Go version requirement from 1.19 to 1.20 for the Xion project. The update is necessary to resolve a build error encountered when compiling the packet-forward-middleware module, which requires Go 1.20 due to its reliance on the errors.Join function introduced in this version.

Error Encountered:

# github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/packetforward/keeper
../go/pkg/mod/github.com/burnt-labs/ibc-apps/middleware/packet-forward-middleware/v7@v7.1.3-0.20240308232808-736bd51c54ad/packetforward/keeper/keeper.go:172:73: undefined: errors.Join
note: module requires Go 1.20
make: *** [Makefile:94: install] Error 2

Changes Made:

This change ensures compatibility with batch-forwarding software and any future dependencies requiring newer Go features.

justinbarry commented 4 months ago

Good catch @papadritta. We can update all the way to 1.21! I'll update it. Much appreciated!