Skip to content

Commit 7adda56

Browse files
tamirmsurvisavla
authored andcommitted
all: Update Go version to 1.23 (#5561)
1 parent 1914ae9 commit 7adda56

File tree

15 files changed

+20
-19
lines changed

15 files changed

+20
-19
lines changed

.github/workflows/go.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
strategy:
1919
matrix:
2020
os: [ubuntu-22.04]
21-
go: ["1.22.1"]
21+
go: ["1.23"]
2222
runs-on: ${{ matrix.os }}
2323
steps:
2424
- uses: actions/checkout@v3
@@ -38,7 +38,7 @@ jobs:
3838
strategy:
3939
matrix:
4040
os: [ubuntu-22.04]
41-
go: ["1.21", "1.22"]
41+
go: ["1.22", "1.23"]
4242
runs-on: ${{ matrix.os }}
4343
steps:
4444
- uses: actions/checkout@v3
@@ -56,7 +56,7 @@ jobs:
5656
strategy:
5757
matrix:
5858
os: [ubuntu-22.04]
59-
go: ["1.21", "1.22"]
59+
go: ["1.22", "1.23"]
6060
pg: [12, 16]
6161
runs-on: ${{ matrix.os }}
6262
services:

.github/workflows/horizon-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222

2323
- uses: ./.github/actions/setup-go
2424
with:
25-
go-version: "1.22"
25+
go-version: "1.23"
2626

2727
- name: Check dependencies
2828
run: ./gomod.sh

.github/workflows/horizon.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
strategy:
1212
matrix:
1313
os: [ubuntu-20.04, ubuntu-22.04]
14-
go: ["1.21", "1.22"]
14+
go: ["1.22", "1.23"]
1515
pg: [12, 16]
1616
protocol-version: [21, 22]
1717
runs-on: ${{ matrix.os }}
@@ -126,6 +126,7 @@ jobs:
126126
name: Test (and push) verify-range image
127127
runs-on: ubuntu-22.04
128128
env:
129+
GO_VERSION: 1.23.4
129130
STELLAR_CORE_VERSION: 21.3.1-2007.4ede19620.focal
130131
CAPTIVE_CORE_STORAGE_PATH: /tmp
131132
steps:
@@ -136,7 +137,7 @@ jobs:
136137

137138
- name: Build and test the Verify Range Docker image
138139
run: |
139-
docker build --build-arg="GO_VERSION=$(sed -En 's/^toolchain[[:space:]]+go([[:digit:].]+)$/\1/p' go.mod)" -f services/horizon/docker/verify-range/Dockerfile -t stellar/horizon-verify-range services/horizon/docker/verify-range/
140+
docker build --build-arg="GO_VERSION=$GO_VERSION" -f services/horizon/docker/verify-range/Dockerfile -t stellar/horizon-verify-range services/horizon/docker/verify-range/
140141
# Any range should do for basic testing, this range was chosen pretty early in history so that it only takes a few mins to run
141142
docker run -e BRANCH=$(git rev-parse HEAD) -e FROM=10000063 -e TO=10000127 stellar/horizon-verify-range
142143

exp/services/recoverysigner/docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.22-bullseye as build
1+
FROM golang:1.23-bullseye as build
22

33
ADD . /src/recoverysigner
44
WORKDIR /src/recoverysigner

exp/services/webauth/docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.22-bullseye as build
1+
FROM golang:1.23-bullseye as build
22

33
ADD . /src/webauth
44
WORKDIR /src/webauth

go.mod

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
module github.com/stellar/go
22

3-
go 1.22
4-
5-
toolchain go1.22.1
3+
go 1.23
64

75
require (
86
cloud.google.com/go/firestore v1.15.0 // indirect

ingest/ledgerbackend/toml.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ func (c *CaptiveCoreToml) unmarshal(data []byte, strict bool) error {
303303
return err
304304
} else if err = toml.NewDecoder(bytes.NewReader(withoutPlaceHolders)).Strict(strict).Decode(&body); err != nil {
305305
if message := err.Error(); strings.HasPrefix(message, "undecoded keys") {
306-
return fmt.Errorf(strings.Replace(
306+
return errors.New(strings.Replace(
307307
message,
308308
"undecoded keys",
309309
"these fields are not supported by captive core",

services/friendbot/docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.22-bullseye as build
1+
FROM golang:1.23-bullseye as build
22

33
ADD . /src/friendbot
44
WORKDIR /src/friendbot

services/galexie/docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.22-bookworm AS builder
1+
FROM golang:1.23-bookworm AS builder
22

33
WORKDIR /go/src/github.com/stellar/go
44

services/horizon/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ binary-build:
1111
--pull always \
1212
--env CGO_ENABLED=0 \
1313
--env GOFLAGS="-ldflags=-X=github.com/stellar/go/support/app.version=$(VERSION_STRING)" \
14-
golang:1.22-bullseye \
14+
golang:1.23-bullseye \
1515
/bin/bash -c '\
1616
git config --global --add safe.directory /go/src/github.com/stellar/go && \
1717
cd /go/src/github.com/stellar/go && \

services/horizon/docker/Dockerfile.dev

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.22-bookworm AS builder
1+
FROM golang:1.23-bookworm AS builder
22

33
ARG VERSION="devel"
44
WORKDIR /go/src/github.com/stellar/go

services/horizon/docker/verify-range/dependencies

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#! /usr/bin/env bash
22
set -e
3+
set -o xtrace
4+
35

46
apt-get update
57
apt-get install -y curl git libpq-dev libsqlite3-dev libsasl2-dev postgresql-client postgresql postgresql-contrib sudo vim zlib1g-dev wget gnupg2 lsb-release

services/horizon/internal/scripts/check_release_hash/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Change to Go version used in CI or rebuild with --build-arg.
2-
ARG GO_IMAGE=golang:1.22-bullseye
2+
ARG GO_IMAGE=golang:1.23-bullseye
33
FROM $GO_IMAGE
44

55
WORKDIR /go/src/github.com/stellar/go

services/regulated-assets-approval-server/docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.22-bullseye as build
1+
FROM golang:1.23-bullseye as build
22

33
ADD . /src/regulated-assets-approval-server
44
WORKDIR /src/regulated-assets-approval-server

staticcheck.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#! /bin/bash
22
set -e
33

4-
version='2023.1.7'
4+
version='2024.1.1'
55

66
staticcheck='go run honnef.co/go/tools/cmd/staticcheck@'"$version"
77

0 commit comments

Comments
 (0)