Skip to content

Commit

Permalink
use go 1.23
Browse files Browse the repository at this point in the history
  • Loading branch information
hunter-bera committed Sep 24, 2024
1 parent ef7f453 commit 174aa5d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
13 changes: 6 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,26 +28,25 @@ endif
########################################################

# Target for building the application in all directories
build:; GOEXPERIMENT=rangefunc go build ./...
build:; go build ./...

# Run the example applications
run-%:; go run ./examples/$*/main.go start

# Format
lint: |
GOEXPERIMENT=rangefunc go run github.com/golangci/golangci-lint/cmd/golangci-lint run
go run github.com/golangci/golangci-lint/cmd/golangci-lint run

# Test
# TODO - Remove the GOEXPERIMENT=rangefunc once Go 1.23 is released
test: |
GOEXPERIMENT=rangefunc go test -v ./...
go test -v ./...

# Format
format: |
GOEXPERIMENT=rangefunc go run github.com/golangci/golangci-lint/cmd/golangci-lint run --fix
go run github.com/golangci/golangci-lint/cmd/golangci-lint run --fix

generate: |
GOEXPERIMENT=rangefunc go generate ./...
go generate ./...

tidy: |
go mod tidy
go mod tidy
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/berachain/offchain-sdk

go 1.22.5
go 1.23

require (
cosmossdk.io/log v1.3.0
Expand Down

0 comments on commit 174aa5d

Please sign in to comment.