Skip to content

Commit

Permalink
chore: bump Golang version (#427)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrekucci authored Oct 4, 2024
1 parent 1ee9bc5 commit dad3788
Show file tree
Hide file tree
Showing 30 changed files with 838 additions and 57 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: 1.22
go-version: 1.23
check-latest: true
cache-dependency-path: go.work.sum

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: 1.22
go-version: 1.23
check-latest: true
cache-dependency-path: go.work.sum

Expand Down Expand Up @@ -84,11 +84,11 @@ jobs:
- name: Run Lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.59
version: v1.61
args: --timeout 15m --verbose ${{ env.GO_LINT_MODULES }}

- name: Run Build
run: echo ${GO_MODULES} | tr ' ' '\n' | xargs -I {} sh -c 'go build -C {} -v ./...'
run: echo ${GO_MODULES} | tr ' ' '\n' | xargs -I {} sh -c 'go build -C {} -ldflags=-checklinkname=0 -v ./...' # The -ldflags=-checklinkname=0 is required for the https://github.com/fjl/memsize module and can be removed when the module is no longer used by external/geth: https://github.com/fjl/memsize/commit/09937c23818edfe26b4f6ede71d28126c7f9657c#diff-2b7814d3fca2e99e56c51b6ff2aa313ea6e9da6424804240aa8ad891fdfe0900R9
env:
GOWORK: off

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/infrastructure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: 1.22
go-version: 1.23
check-latest: true
cache-dependency-path: go.work.sum

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/releaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: 1.22
go-version: 1.23
check-latest: true
cache-dependency-path: go.work.sum

Expand Down
2 changes: 1 addition & 1 deletion bridge/standard/bridge-v1/Dockerfile.emulator
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.22.1 AS builder
FROM golang:1.23.2 AS builder

WORKDIR /app
COPY ./bridge ./bridge
Expand Down
2 changes: 1 addition & 1 deletion bridge/standard/bridge-v1/Dockerfile.relayer
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.22.1 AS builder
FROM golang:1.23.2 AS builder

WORKDIR /app
COPY ./bridge ./bridge
Expand Down
2 changes: 1 addition & 1 deletion bridge/standard/bridge-v1/Dockerfile.user
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.22.1 AS builder
FROM golang:1.23.2 AS builder

WORKDIR /app
COPY ./bridge ./bridge
Expand Down
4 changes: 2 additions & 2 deletions bridge/standard/bridge-v1/go.mod
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
module github.com/primev/mev-commit/bridge/standard/bridge-v1

go 1.22
go 1.23

require (
github.com/DataDog/datadog-api-client-go v1.16.0
github.com/ethereum/go-ethereum v1.13.14
github.com/ethereum/go-ethereum v1.13.15
github.com/primev/mev-commit/contracts-abi v0.0.1
github.com/urfave/cli/v2 v2.27.1
golang.org/x/crypto v0.25.0
Expand Down
4 changes: 2 additions & 2 deletions bridge/standard/bridge-v1/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ github.com/decred/dcrd/dcrec/secp256k1/v4 v4.3.0 h1:rpfIENRNNilwHwZeG5+P150SMrnN
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.3.0/go.mod h1:v57UDF4pDQJcEfFUCRop3lJL149eHGSe9Jvczhzjo/0=
github.com/ethereum/c-kzg-4844 v0.4.0 h1:3MS1s4JtA868KpJxroZoepdV0ZKBp3u/O5HcZ7R3nlY=
github.com/ethereum/c-kzg-4844 v0.4.0/go.mod h1:VewdlzQmpT5QSrVhbBuGoCdFJkpaJlO1aQputP83wc0=
github.com/ethereum/go-ethereum v1.13.14 h1:EwiY3FZP94derMCIam1iW4HFVrSgIcpsu0HwTQtm6CQ=
github.com/ethereum/go-ethereum v1.13.14/go.mod h1:TN8ZiHrdJwSe8Cb6x+p0hs5CxhJZPbqB7hHkaUXcmIU=
github.com/ethereum/go-ethereum v1.13.15 h1:U7sSGYGo4SPjP6iNIifNoyIAiNjrmQkz6EwQG+/EZWo=
github.com/ethereum/go-ethereum v1.13.15/go.mod h1:TN8ZiHrdJwSe8Cb6x+p0hs5CxhJZPbqB7hHkaUXcmIU=
github.com/fjl/memsize v0.0.2 h1:27txuSD9or+NZlnOWdKUxeBzTAUkWCVh+4Gf2dWFOzA=
github.com/fjl/memsize v0.0.2/go.mod h1:VvhXpOYNQvB+uIk2RvXzuaQtkQJzzIx6lSBe1xv7hi0=
github.com/fsnotify/fsnotify v1.6.0 h1:n+5WquG0fcWoWp6xPWfHdbskMCQaFnG6PfBrh1Ky4HY=
Expand Down
2 changes: 1 addition & 1 deletion bridge/standard/bridge-v1/pkg/shared/settlementfilterer.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func (f *SettlementFilterer) ObtainTransferInitiatedBySender(
return TransferInitiatedEvent{}, fmt.Errorf("failed to filter transfer initiated: %w", err)
}
if !iter.Next() {
return TransferInitiatedEvent{}, fmt.Errorf("failed to obtain single transfer initiated event with sender: " + sender.String())
return TransferInitiatedEvent{}, fmt.Errorf("failed to obtain single transfer initiated event with sender: %s", sender)
}
return TransferInitiatedEvent{
Sender: iter.Event.Sender,
Expand Down
4 changes: 2 additions & 2 deletions contracts-abi/go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module github.com/primev/mev-commit/contracts-abi

go 1.22
go 1.23

require github.com/ethereum/go-ethereum v1.13.14
require github.com/ethereum/go-ethereum v1.13.15

require (
github.com/DataDog/zstd v1.5.5 // indirect
Expand Down
4 changes: 2 additions & 2 deletions contracts-abi/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ github.com/decred/dcrd/dcrec/secp256k1/v4 v4.3.0 h1:rpfIENRNNilwHwZeG5+P150SMrnN
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.3.0/go.mod h1:v57UDF4pDQJcEfFUCRop3lJL149eHGSe9Jvczhzjo/0=
github.com/ethereum/c-kzg-4844 v0.4.0 h1:3MS1s4JtA868KpJxroZoepdV0ZKBp3u/O5HcZ7R3nlY=
github.com/ethereum/c-kzg-4844 v0.4.0/go.mod h1:VewdlzQmpT5QSrVhbBuGoCdFJkpaJlO1aQputP83wc0=
github.com/ethereum/go-ethereum v1.13.14 h1:EwiY3FZP94derMCIam1iW4HFVrSgIcpsu0HwTQtm6CQ=
github.com/ethereum/go-ethereum v1.13.14/go.mod h1:TN8ZiHrdJwSe8Cb6x+p0hs5CxhJZPbqB7hHkaUXcmIU=
github.com/ethereum/go-ethereum v1.13.15 h1:U7sSGYGo4SPjP6iNIifNoyIAiNjrmQkz6EwQG+/EZWo=
github.com/ethereum/go-ethereum v1.13.15/go.mod h1:TN8ZiHrdJwSe8Cb6x+p0hs5CxhJZPbqB7hHkaUXcmIU=
github.com/fjl/memsize v0.0.2 h1:27txuSD9or+NZlnOWdKUxeBzTAUkWCVh+4Gf2dWFOzA=
github.com/fjl/memsize v0.0.2/go.mod h1:VvhXpOYNQvB+uIk2RvXzuaQtkQJzzIx6lSBe1xv7hi0=
github.com/fsnotify/fsnotify v1.6.0 h1:n+5WquG0fcWoWp6xPWfHdbskMCQaFnG6PfBrh1Ky4HY=
Expand Down
2 changes: 1 addition & 1 deletion external/geth
2 changes: 1 addition & 1 deletion go.work
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
go 1.22
go 1.23

use (
./bridge/standard/bridge-v1
Expand Down
Loading

0 comments on commit dad3788

Please sign in to comment.