Skip to content

Commit

Permalink
chore: upgrade to Go 1.21 (#2333)
Browse files Browse the repository at this point in the history
Closes #2321

Separately we can consider dropping the `-compat` flag usage. See
#2332 b/c I don't
think it's necessary.
  • Loading branch information
rootulp authored Aug 24, 2023
1 parent ee25c95 commit 7f97788
Show file tree
Hide file tree
Showing 6 changed files with 62 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
workflow_call:

env:
GO_VERSION: '1.20'
GO_VERSION: '1.21'

jobs:
golangci-lint:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
workflow_call:

env:
GO_VERSION: '1.20'
GO_VERSION: '1.21'

jobs:
test:
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ build: mod
@cd ./cmd/celestia-appd
@mkdir -p build/
@go build $(BUILD_FLAGS) -o build/ ./cmd/celestia-appd
@go mod tidy -compat=1.20
@go mod tidy -compat=1.21
.PHONY: build

## install: Build and install the celestia-appd binary into the $GOPATH/bin directory.
Expand All @@ -75,7 +75,7 @@ install: go.sum
## mod: Update go.mod.
mod:
@echo "--> Updating go.mod"
@go mod tidy -compat=1.20
@go mod tidy -compat=1.21
.PHONY: mod

## mod-verify: Verify dependencies have expected content.
Expand Down Expand Up @@ -185,7 +185,7 @@ txsim-build:
@cd ./test/cmd/txsim
@mkdir -p build/
@go build $(BUILD_FLAGS) -o build/ ./test/cmd/txsim
@go mod tidy -compat=1.20
@go mod tidy -compat=1.21
.PHONY: txsim-build

## txsim-build-docker: Build the tx simulator Docker image. Requires Docker.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ node | | | |

## Install

1. [Install Go](https://go.dev/doc/install) 1.20
1. [Install Go](https://go.dev/doc/install) 1.21
1. Clone this repo
1. Install the celestia-app CLI

Expand Down
4 changes: 3 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
module github.com/celestiaorg/celestia-app

go 1.20
go 1.21

toolchain go1.21.0

require (
github.com/celestiaorg/nmt v0.18.1
Expand Down
Loading

0 comments on commit 7f97788

Please sign in to comment.