Skip to content

Commit 4651d22

Browse files
authored
chore(golang): Upgrade Golang version to 1.23.1 (#1300)
Signed-off-by: Javier Rodriguez <[email protected]>
1 parent e84f609 commit 4651d22

File tree

10 files changed

+22
-18
lines changed

10 files changed

+22
-18
lines changed

.github/workflows/build_and_package.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
- name: Set up Go
6262
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
6363
with:
64-
go-version: "1.22.5"
64+
go-version: "1.23.1"
6565

6666
# install qemu binaries for multiarch builds (needed by goreleaser/buildx)
6767
- name: Setup qemu

.github/workflows/codeql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
- name: Set up Go
4848
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
4949
with:
50-
go-version: "1.22.5"
50+
go-version: "1.23.1"
5151

5252
# Initializes the CodeQL tools for scanning.
5353
- name: Initialize CodeQL

.github/workflows/lint.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,22 +26,24 @@ jobs:
2626
steps:
2727
- uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
2828
with:
29-
go-version: "1.22.5"
29+
go-version: "1.23.1"
3030

3131
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
3232

3333
- name: Lint main module
34-
uses: golangci/golangci-lint-action@3a919529898de77ec3da873e3063ca4b10e7f5cc # v3.7.0
34+
uses: golangci/golangci-lint-action@aaa42aa0628b4ae2578232a66b541047968fac86 # v6.1.0
3535
if: ${{ matrix.app == 'main-module' }}
3636
with:
37-
version: v1.54
37+
version: v1.60.3
38+
only-new-issues: 'true'
3839

3940
- name: Lint ${{ matrix.app }}
40-
uses: golangci/golangci-lint-action@3a919529898de77ec3da873e3063ca4b10e7f5cc # v3.7.0
41+
uses: golangci/golangci-lint-action@aaa42aa0628b4ae2578232a66b541047968fac86 # v6.1.0
4142
if: ${{ matrix.app != 'main-module' }}
4243
with:
4344
working-directory: app/${{ matrix.app }}
44-
version: v1.54
45+
version: v1.60.3
46+
only-new-issues: 'true'
4547

4648
lint-protos:
4749
runs-on: ubuntu-latest
@@ -64,7 +66,7 @@ jobs:
6466
6567
- uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
6668
with:
67-
go-version: "1.22.5"
69+
go-version: "1.23.1"
6870

6971
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
7072

@@ -73,7 +75,8 @@ jobs:
7375
make -C extras/dagger module-init
7476
7577
- name: Lint
76-
uses: golangci/golangci-lint-action@3a919529898de77ec3da873e3063ca4b10e7f5cc # v3.7.0
78+
uses: golangci/golangci-lint-action@aaa42aa0628b4ae2578232a66b541047968fac86 # v6.1.0
7779
with:
7880
working-directory: extras/dagger
79-
version: v1.54
81+
version: v1.60.3
82+
only-new-issues: 'true'

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
2828
- uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
2929
with:
30-
go-version: "1.22.5"
30+
go-version: "1.23.1"
3131
cache: true
3232
cache-dependency-path: go.sum
3333

@@ -42,7 +42,7 @@ jobs:
4242
- name: Generate migrations
4343
if: ${{ matrix.app == 'controlplane' }}
4444
env:
45-
ATLAS_VERSION: v0.25.0
45+
ATLAS_VERSION: v0.27.0
4646
run: |
4747
wget -q https://release.ariga.io/atlas/atlas-linux-amd64-$ATLAS_VERSION -O /tmp/atlas
4848
sudo install /tmp/atlas /usr/local/bin/atlas

.golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ linters:
2323
- unconvert
2424
- dogsled
2525
- goconst
26-
- exportloopref
26+
- copyloopvar
2727
- gocyclo
2828
- goprintffuncname
2929
# Can't enable it for now, it crashes https://github.com/ent/ent/pull/3315

app/controlplane/Dockerfile.migrations

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Container image built by go-releaser that's used to run migrations against the database during deployment
22
# See https://atlasgo.io/guides/deploying/image
3-
FROM arigaio/atlas@sha256:dc0f6b545320fc0be1bd28d122c98c2a96ef8e7019d75bcd5e8eec3e1d93f267 as base
3+
# Current version v0.27.0
4+
FROM arigaio/atlas@sha256:240e82b144b0055c49500351deaea09358797ec6d039f91cc88a28aa4264f640 as base
45

56
FROM scratch
67
# Update permissions to make it readable by the user

common.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ init: init-api-tools
77
go install github.com/vektra/mockery/[email protected]
88
# using binary release for atlas, since ent schema handler is not included
99
# in the community version anymore https://github.com/ariga/atlas/issues/2388#issuecomment-1864287189
10-
curl -sSf https://atlasgo.sh | ATLAS_VERSION=v0.25.0 sh -s -- -y
10+
curl -sSf https://atlasgo.sh | ATLAS_VERSION=v0.27.0 sh -s -- -y
1111

1212
# initialize API tooling
1313
.PHONY: init-api-tools

docs/docs/getting-started/attestation-crafting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ jobs:
284284
- name: Set up Go
285285
uses: actions/setup-go@v3
286286
with:
287-
go-version: "1.19"
287+
go-version: "1.23.1"
288288

289289
- name: Configure AWS credentials to push container images
290290
uses: aws-actions/configure-aws-credentials@v1

docs/examples/ci-workflows/github.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
- name: Set up Go
4141
uses: actions/setup-go@v3
4242
with:
43-
go-version: "1.19"
43+
go-version: "1.23.1"
4444

4545
# Generate SBOM using syft in cycloneDX format
4646
- uses: anchore/sbom-action@v0

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/chainloop-dev/chainloop
22

3-
go 1.22.5
3+
go 1.23.1
44

55
require (
66
cloud.google.com/go/secretmanager v1.11.5

0 commit comments

Comments
 (0)