Skip to content

Commit

Permalink
all: build with go1.23
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuasing committed Aug 21, 2024
1 parent 348479f commit a3d0731
Show file tree
Hide file tree
Showing 13 changed files with 15 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
runs-on: "ubuntu-latest"
strategy:
matrix:
go-version: [ "1.22.x" ]
go-version: [ "1.23.x" ]
services:
postgres:
image: postgres:16.3-alpine3.20
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/localnet-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
runs-on: "ubuntu-latest"
strategy:
matrix:
go-version: [ "1.22.x" ]
go-version: [ "1.23.x" ]
steps:
- name: "Checkout repository"
uses: actions/checkout@v4
Expand All @@ -42,4 +42,3 @@ jobs:
working-directory: ./e2e/monitor
# XXX should this be a make command?
run: go test -v ./...

2 changes: 1 addition & 1 deletion .github/workflows/node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ concurrency:
cancel-in-progress: "${{ github.event_name == 'pull_request' }}"

env:
GO_VERSION: "1.22.x"
GO_VERSION: "1.23.x"
PNPM_VERSION: "9.4.x"

jobs:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ concurrency:
cancel-in-progress: true

env:
GO_VERSION: "1.22.x"
GO_VERSION: "1.23.x"
PNPM_VERSION: "9.4.x"
GO_LDFLAGS: >-
-X 'github.com/hemilabs/heminetwork/version.Brand=Hemi Labs'
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ Pre-built binaries are available on the [Releases Page](https://github.com/hemil

- `git`
- `make`
- [Go v1.22.2+](https://go.dev/dl/)
- [Go v1.23+](https://go.dev/dl/)

### Building with Makefile

Expand Down
2 changes: 1 addition & 1 deletion cmd/tbcd/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ endpoint.**

### 🏁 Prerequisites

Ensure Go v1.22.2 or newer is installed on your system.
Ensure Go v1.23 or newer is installed on your system.

### Using Makefile

Expand Down
2 changes: 1 addition & 1 deletion docker/bfgd/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# which can be found in the LICENSE file.

# Build stage
FROM golang:1.22.6-alpine3.20@sha256:1a478681b671001b7f029f94b5016aed984a23ad99c707f6a0ab6563860ae2f3 AS builder
FROM golang:1.23-alpine3.20@sha256:d0b31558e6b3e4cc59f6011d79905835108c919143ebecc58f35965bf79948f4 AS builder

ARG GO_LDFLAGS

Expand Down
2 changes: 1 addition & 1 deletion docker/bssd/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# which can be found in the LICENSE file.

# Build stage
FROM golang:1.22.6-alpine3.20@sha256:1a478681b671001b7f029f94b5016aed984a23ad99c707f6a0ab6563860ae2f3 AS builder
FROM golang:1.23-alpine3.20@sha256:d0b31558e6b3e4cc59f6011d79905835108c919143ebecc58f35965bf79948f4 AS builder

ARG GO_LDFLAGS

Expand Down
2 changes: 1 addition & 1 deletion docker/popmd/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# which can be found in the LICENSE file.

# Build stage
FROM golang:1.22.6-alpine3.20@sha256:1a478681b671001b7f029f94b5016aed984a23ad99c707f6a0ab6563860ae2f3 AS builder
FROM golang:1.23-alpine3.20@sha256:d0b31558e6b3e4cc59f6011d79905835108c919143ebecc58f35965bf79948f4 AS builder

ARG GO_LDFLAGS

Expand Down
2 changes: 1 addition & 1 deletion e2e/monitor/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ that we want to test against.

## Prerequisites

* Go 1.22+
* Go 1.23+
* `docker` available in your cli

## Running
Expand Down
4 changes: 3 additions & 1 deletion e2e/monitor/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
module github.com/hemilabs/heminetwork/e2e/monitor

go 1.22.6
go 1.22

toolchain go1.23.0

replace github.com/hemilabs/heminetwork => ../../

Expand Down
2 changes: 1 addition & 1 deletion e2e/optimism-stack.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Use of this source code is governed by the MIT License,
# which can be found in the LICENSE file.

FROM golang:1.22.6-bookworm@sha256:39b7e6ebaca464d51989858871f792f2e186dce8ce0cbdba7e88e4444b244407
FROM golang:1.23-bookworm@sha256:31dc846dd1bcca84d2fa231bcd16c09ff271bcc1a5ae2c48ff10f13b039688f3

RUN apt-get update

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module github.com/hemilabs/heminetwork

go 1.22

toolchain go1.22.6
toolchain go1.23.0

// Temporary replace until we upstream our ws_js patch.
replace github.com/coder/websocket v1.8.12 => github.com/hemilabs/websocket v0.0.0-20240813101919-bf33653e9aa5
Expand Down

0 comments on commit a3d0731

Please sign in to comment.