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 20, 2024
1 parent 016e7e8 commit b381fb7
Show file tree
Hide file tree
Showing 13 changed files with 16 additions and 16 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"

jobs:
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
3 changes: 1 addition & 2 deletions 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 Expand Up @@ -110,4 +110,3 @@ The `tbcd` daemon runs an RPC server that listens on the address provided by the
The RPC protocol is **WebSocket-based** and **uses a standard request/response model.**

[Read more about the RPC protocol and available commands](../../api/tbcapi/README.md).

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

# Add ca-certificates, timezone data, make and git
RUN apk --no-cache add --update ca-certificates tzdata make git
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

# Add ca-certificates, timezone data, make and git
RUN apk --no-cache add --update ca-certificates tzdata make git
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

# Add ca-certificates, timezone data, make and git
RUN apk --no-cache add --update ca-certificates tzdata make git
Expand Down
4 changes: 2 additions & 2 deletions 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 Expand Up @@ -46,4 +46,4 @@ after these milliseconds, values will be read and dumped.
```
$ HEMI_E2E_DUMP_JSON_AFTER_MS=10000 go run ./...
{"bitcoin_block_count":3011,"pop_tx_count":20,"first_batcher_publication_hash":"0x2b86a72b48668b7a35dcab99166f9330c884c50d1b19847c3c0569a0d0806465,21","last_batcher_publication_hash":"0x5ec52eeba46c300e98546de25991c1862ef8dd11c3ee3357ee2a717517e2fe8c,192","batcher_publication_count":34,"pop_miner_hemi_balance":"14000000000000000000"}
```
```
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 b381fb7

Please sign in to comment.