Skip to content

Commit f9e74c9

Browse files
authored
Bump go to 1.24.6 #5319
#5319
2 parents 01e624a + 1b72799 commit f9e74c9

14 files changed

Lines changed: 39 additions & 19 deletions

File tree

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
To update Go version to $ARGUMENT you need to update the following files
2+
3+
- flake.nix
4+
- You need to use `nix store prefetch-file` to update the hash as well.
5+
- .tool-versions
6+
- go.mod
7+
- custombuild/go.mod
8+
- e2e/go.mod
9+
- k6/go.mod
10+
- packagetracker/go.mod.tpl
11+
- custombuild/cmd/authgearx/Dockerfile
12+
- custombuild/cmd/portalx/Dockerfile
13+
- cmd/portal/Dockerfile
14+
- cmd/authgear/Dockerfile
15+
- once/partial.dockerfile
16+
17+
After updating the above files, you run the following commands:
18+
19+
```
20+
make go-mod-tidy
21+
make once/Dockerfile
22+
```

.tool-versions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
golang 1.24.4
1+
golang 1.24.6
22
nodejs 20.9.0
33
python 3.12.1

cmd/authgear/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ COPY Makefile .
1515
RUN make authui
1616

1717
# Stage 1: Build the Go binary
18-
FROM quay.io/theauthgear/golang:1.24.4-noble AS authgear-stage-1
18+
FROM quay.io/theauthgear/golang:1.24.6-noble AS authgear-stage-1
1919

2020
# Install build time C dependencies
2121
RUN set -eux; \

cmd/portal/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ COPY ./portal .
2626
RUN npm run build
2727

2828
# Stage 2: Build the Go binary
29-
FROM quay.io/theauthgear/golang:1.24.4-noble AS authgear-portal-stage-2
29+
FROM quay.io/theauthgear/golang:1.24.6-noble AS authgear-portal-stage-2
3030

3131
# Install build time C dependencies
3232
RUN set -eux; \

custombuild/cmd/authgearx/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ COPY Makefile .
1515
RUN make authui
1616

1717
# Stage 1: Build the Go binary
18-
FROM quay.io/theauthgear/golang:1.24.4-noble AS authgear-stage-1
18+
FROM quay.io/theauthgear/golang:1.24.6-noble AS authgear-stage-1
1919

2020
# Install build time C dependencies
2121
RUN set -eux; \

custombuild/cmd/portalx/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ COPY ./portal .
2626
RUN npm run build
2727

2828
# Stage 2: Build the Go binary
29-
FROM quay.io/theauthgear/golang:1.24.4-noble AS authgear-portal-stage-2
29+
FROM quay.io/theauthgear/golang:1.24.6-noble AS authgear-portal-stage-2
3030

3131
# Install build time C dependencies
3232
RUN set -eux; \

custombuild/go.mod

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

3-
go 1.24.4
3+
go 1.24.6
44

55
replace github.com/authgear/authgear-server v0.0.0 => ../
66

e2e/go.mod

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

3-
go 1.24.4
3+
go 1.24.6
44

55
replace github.com/authgear/authgear-server v0.0.0 => ../
66

flake.nix

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,14 @@
1515
let
1616
pkgs = import nixpkgs {
1717
inherit system;
18-
# Build 1.24.4 ourselves.
1918
overlays = [
2019
(final: prev: {
2120
go = (
2221
prev.go.overrideAttrs {
23-
version = "1.24.4";
22+
version = "1.24.6";
2423
src = prev.fetchurl {
25-
url = "https://go.dev/dl/go1.24.4.src.tar.gz";
26-
hash = "sha256-WoaoOjH5+oFJC4xUIKw4T9PZWj5x+6Zlx7P5XR3+8rQ=";
24+
url = "https://go.dev/dl/go1.24.6.src.tar.gz";
25+
hash = "sha256-4ctVgqq1iGaLwEwH3hhogHD2uMmyqvNh+CHhm9R8/b0=";
2726
};
2827
}
2928
);
@@ -34,7 +33,6 @@
3433
{
3534
devShells.default = pkgs.mkShell {
3635
packages = [
37-
# 1.24.4
3836
pkgs.go
3937
# Any nodejs 20 is fine.
4038
pkgs.nodejs_20

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ module github.com/authgear/authgear-server
22

33
// go1.21 supports toolchain
44
// See https://go.dev/doc/toolchain
5-
go 1.24.4
5+
go 1.24.6
66

77
require (
88
github.com/Masterminds/sprig v2.22.0+incompatible

0 commit comments

Comments
 (0)