Skip to content

Commit 2428d1d

Browse files
authored
chore(deps): bump go from 1.24 to 1.25 (#4558)
1 parent 8b46626 commit 2428d1d

File tree

21 files changed

+717
-238
lines changed

21 files changed

+717
-238
lines changed

.github/workflows/integration-test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
workflow_dispatch:
88

99
env:
10-
GO_VERSION: "1.24"
10+
GO_VERSION: "1.25"
1111
DAGGER_VERSION: "0.18.14"
1212
REGISTRY_CACHE: ghcr.io/${{ github.repository }}-cache
1313

@@ -80,7 +80,7 @@ jobs:
8080
run: |
8181
# Pre-pull common base layers to speed up builds
8282
echo "Pre-pulling base cache layers..."
83-
docker pull ${{ env.REGISTRY_CACHE }}:golang-base || echo "golang-base not cached yet"
83+
docker pull ${{ env.REGISTRY_CACHE }}:golang-base-${{ env.GO_VERSION }} || echo "golang-base not cached yet"
8484
docker pull ${{ env.REGISTRY_CACHE }}:node-base || echo "node-base not cached yet"
8585
docker pull ${{ env.REGISTRY_CACHE }}:runtime-base || echo "runtime-base not cached yet"
8686

.github/workflows/lint.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
workflow_dispatch:
88

99
env:
10-
GO_VERSION: "1.24"
10+
GO_VERSION: "1.25"
1111

1212
jobs:
1313
go-lint:
@@ -26,7 +26,7 @@ jobs:
2626
uses: golangci/[email protected]
2727
with:
2828
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
29-
version: v2.1.1
29+
version: v2.4.0
3030
args: --timeout=10m
3131

3232
ui-lint:
@@ -56,10 +56,10 @@ jobs:
5656
- name: Run ShellCheck
5757
uses: ludeeus/action-shellcheck@master
5858
with:
59-
scandir: '.'
59+
scandir: "."
6060
format: gcc
6161
severity: warning
62-
check_together: 'yes'
62+
check_together: "yes"
6363

6464
go-mod-tidy:
6565
name: "Go Mod Tidy"

.github/workflows/nightly.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ permissions:
99
packages: write
1010

1111
env:
12-
GO_VERSION: "1.24"
12+
GO_VERSION: "1.25"
1313

1414
jobs:
1515
nightly-build:

.github/workflows/proto.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ on:
1313
- "rpc/**"
1414

1515
env:
16-
GO_VERSION: "1.24"
16+
GO_VERSION: "1.25"
1717

1818
permissions:
1919
contents: read

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ permissions:
99
packages: write
1010

1111
env:
12-
GO_VERSION: "1.24"
12+
GO_VERSION: "1.25"
1313

1414
jobs:
1515
build:

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
workflow_dispatch:
88

99
env:
10-
GO_VERSION: "1.24"
10+
GO_VERSION: "1.25"
1111
DAGGER_VERSION: "0.18.14"
1212

1313
concurrency:

CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Flipt v2 is a Git-native feature management platform with a monorepo structure.
1111
- **v1 code**: Located on `main` branch
1212
- **v2 code**: Located on current (`v2`) branch. This is the default branch in the repository.
1313
- **License**: Fair Core License for server, MIT for client code
14-
- **Requirements**: Go 1.24+ and Node.js 18+
14+
- **Requirements**: Go 1.25+ and Node.js 18+
1515

1616
## Project Architecture & Structure
1717

DEVELOPMENT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Also check out our [Contributing](CONTRIBUTING.md) guide for more information on
1212
Before starting, make sure you have the following installed:
1313

1414
- [GCC Compiler](https://gcc.gnu.org/install/binaries.html)
15-
- [Go 1.24+](https://golang.org/doc/install)
15+
- [Go 1.25+](https://golang.org/doc/install)
1616
- [NodeJS >= 22](https://nodejs.org/en/ )
1717
- [Mage](https://magefile.org/)
1818
- [Docker](https://docs.docker.com/install/) (for running unit tests)

Dockerfile.dev

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
1-
FROM golang:1.24-alpine3.21
1+
FROM golang:1.25-alpine3.21
22

33
WORKDIR /server
44

5-
RUN apk add --update --no-cache git bash gcc build-base binutils-gold \
6-
openssl \
7-
ca-certificates
5+
RUN apk add --update --no-cache git bash gcc build-base binutils-gold
86

97
RUN git clone https://github.com/magefile/mage && \
10-
cd mage && \
11-
go run bootstrap.go
8+
cd mage && \
9+
go run bootstrap.go
1210

1311
COPY go.mod .
1412
COPY go.sum .
@@ -20,7 +18,7 @@ COPY ./core ./core
2018
RUN go mod download -x
2119

2220
RUN mkdir -p /etc/flipt && \
23-
mkdir -p /var/opt/flipt
21+
mkdir -p /var/opt/flipt
2422

2523
EXPOSE 8080
2624
EXPOSE 9000

build/internal/flipt.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ func Base(ctx context.Context, dag *dagger.Client, source, uiDist *dagger.Direct
2323

2424
// Use cache if available
2525
if len(registryCache) > 0 && registryCache[0] != "" {
26-
baseImageRef := fmt.Sprintf("%s:golang-base", registryCache[0])
26+
baseImageRef := fmt.Sprintf("%s:golang-%s", registryCache[0], "base-1.25")
2727
// Try cached base first
2828
cachedBase := golang.From(baseImageRef)
2929
if _, err := cachedBase.Sync(ctx); err == nil {
3030
golang = cachedBase
3131
} else {
3232
// Build fresh base and cache it
33-
golang = golang.From("golang:1.24-alpine3.21").
33+
golang = golang.From("golang:1.25-alpine3.21").
3434
WithEnvVariable("GOCACHE", goBuildCachePath).
3535
WithEnvVariable("GOMODCACHE", goModCachePath).
3636
WithExec([]string{"apk", "add", "bash", "gcc", "binutils-gold", "build-base", "git"})
@@ -39,7 +39,7 @@ func Base(ctx context.Context, dag *dagger.Client, source, uiDist *dagger.Direct
3939
}
4040
} else {
4141
// No cache - use regular build
42-
golang = golang.From("golang:1.24-alpine3.21").
42+
golang = golang.From("golang:1.25-alpine3.21").
4343
WithEnvVariable("GOCACHE", goBuildCachePath).
4444
WithEnvVariable("GOMODCACHE", goModCachePath).
4545
WithExec([]string{"apk", "add", "bash", "gcc", "binutils-gold", "build-base", "git"})

0 commit comments

Comments
 (0)