Skip to content

Commit

Permalink
chore: update to Go 1.22 (#122)
Browse files Browse the repository at this point in the history
The error log fix was required for the code to compile at all with Go 1.23
  • Loading branch information
agaffney committed Sep 16, 2024
1 parent cf66fd8 commit dbecf14
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/go-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
name: go-test
strategy:
matrix:
go-version: [1.21.x, 1.22.x]
go-version: [1.22.x, 1.23.x]
# TODO: re-enable macos-latest when the repo is public
platform: [ubuntu-latest] #, macos-latest]
runs-on: ${{ matrix.platform }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.21.x
go-version: 1.22.x
cache: false
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.21.x
go-version: 1.22.x
- name: Build binary
run: GOOS=${{ matrix.os }} GOARCH=${{ matrix.arch }} make build
- name: Upload release asset
Expand Down
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/blinklabs-io/node

go 1.21.5
go 1.22

require (
github.com/blinklabs-io/gouroboros v0.93.3
Expand Down
3 changes: 2 additions & 1 deletion internal/node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
package node

import (
"fmt"
"log/slog"
"net"

Expand Down Expand Up @@ -66,7 +67,7 @@ func Run(logger *slog.Logger) error {
}
go func() {
if err := n.StartMetrics(); err != nil {
logger.Error("failed to start metrics listener %v", err)
logger.Error(fmt.Sprintf("failed to start metrics listener %v", err))
}
}()
if err := n.Run(); err != nil {
Expand Down

0 comments on commit dbecf14

Please sign in to comment.