Skip to content

Commit e411235

Browse files
Update Go dependencies to latest versions (Go 1.25) (#157)
* Initial plan * Update Go dependencies and version to 1.25 Co-authored-by: RichardChen820 <99175581+RichardChen820@users.noreply.github.com> * Verified build, tests, and security checks pass Co-authored-by: RichardChen820 <99175581+RichardChen820@users.noreply.github.com> * Add cover.out to .gitignore and remove from repo Co-authored-by: RichardChen820 <99175581+RichardChen820@users.noreply.github.com> * Remove toolchain directive to fix CI version mismatch Co-authored-by: RichardChen820 <99175581+RichardChen820@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: RichardChen820 <99175581+RichardChen820@users.noreply.github.com>
1 parent c3962a2 commit e411235

9 files changed

Lines changed: 147 additions & 137 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ jobs:
1919
- name: Set up Go
2020
uses: actions/setup-go@v4
2121
with:
22-
go-version: '1.24'
22+
go-version: '1.25'
2323
- name: Run Build
2424
run: go build -o ./out/manager ./cmd/main.go
2525
- name: Run Test
2626
run: |
2727
echo 'Install evntest tool'
28-
ENVTEST_VERSION=release-0.22
28+
ENVTEST_VERSION=release-0.23
2929
GOBIN=$GITHUB_WORKSPACE go install sigs.k8s.io/controller-runtime/tools/setup-envtest@$ENVTEST_VERSION
3030
echo 'Run tests'
3131
KUBEBUILDER_ASSETS=$($GITHUB_WORKSPACE/setup-envtest use 1.30.0 -p path) CGO_ENABLED=0 go test ./... -coverprofile cover.out

.github/workflows/golangci-lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- uses: actions/checkout@v4
2323
- uses: actions/setup-go@v5
2424
with:
25-
go-version: 1.24.0
25+
go-version: 1.25.0
2626
- name: golangci-lint
2727
uses: golangci/golangci-lint-action@v8
2828
with:

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,3 +337,4 @@ ASALocalRun/
337337
coveragetool
338338
reports/
339339
*.cobertura.xml
340+
cover.out

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Build the manager binary
2-
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/oss/go/microsoft/golang:1.24-cbl-mariner2.0 AS builder
2+
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/oss/go/microsoft/golang:1.25-cbl-mariner2.0 AS builder
33

44
ARG MODULE_VERSION
55
WORKDIR /workspace

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,8 @@ GOLANGCI_LINT = $(LOCALBIN)/golangci-lint-$(GOLANGCI_LINT_VERSION)
168168
## Tool Versions
169169
KUSTOMIZE_VERSION ?= v5.4.1
170170
CONTROLLER_TOOLS_VERSION ?= v0.15.0
171-
ENVTEST_VERSION ?= release-0.18
172-
GOLANGCI_LINT_VERSION ?= v1.57.2
171+
ENVTEST_VERSION ?= release-0.23
172+
GOLANGCI_LINT_VERSION ?= v1.64.8
173173

174174
.PHONY: kustomize
175175
kustomize: $(KUSTOMIZE) ## Download kustomize locally if necessary.

config/rbac/role.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
apiVersion: rbac.authorization.k8s.io/v1
33
kind: ClusterRole
44
metadata:
5-
creationTimestamp: null
65
name: manager-role
76
rules:
87
- apiGroups:

go.mod

Lines changed: 39 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,59 @@
11
module azappconfig/provider
22

3-
go 1.24.0
3+
go 1.25.0
44

55
require (
6-
github.com/Azure/azure-sdk-for-go/sdk/azcore v1.20.0
7-
github.com/Azure/azure-sdk-for-go/sdk/data/azappconfig/v2 v2.0.0
6+
github.com/Azure/azure-sdk-for-go/sdk/azcore v1.21.0
7+
github.com/Azure/azure-sdk-for-go/sdk/data/azappconfig/v2 v2.1.0
88
github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/azsecrets v1.4.0
99
github.com/golang/mock v1.6.0
10-
github.com/onsi/gomega v1.36.1
11-
golang.org/x/crypto v0.46.0
10+
github.com/onsi/gomega v1.38.2
11+
golang.org/x/crypto v0.48.0
1212
golang.org/x/sync v0.19.0
13-
k8s.io/apimachinery v0.34.3
14-
k8s.io/client-go v0.34.3
15-
sigs.k8s.io/controller-runtime v0.22.5
13+
k8s.io/apimachinery v0.35.1
14+
k8s.io/client-go v0.35.1
15+
sigs.k8s.io/controller-runtime v0.23.1
1616
)
1717

1818
require (
1919
github.com/Azure/azure-sdk-for-go/sdk/internal v1.11.2 // indirect
2020
github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/internal v1.2.0 // indirect
2121
github.com/AzureAD/microsoft-authentication-library-for-go v1.6.0 // indirect
22+
github.com/Masterminds/semver/v3 v3.4.0 // indirect
2223
github.com/emicklei/go-restful/v3 v3.13.0 // indirect
2324
github.com/evanphx/json-patch/v5 v5.9.11 // indirect
2425
github.com/fxamacker/cbor/v2 v2.9.0 // indirect
25-
github.com/go-openapi/jsonpointer v0.22.3 // indirect
26-
github.com/go-openapi/jsonreference v0.21.3 // indirect
27-
github.com/go-openapi/swag v0.25.3 // indirect
28-
github.com/go-openapi/swag/cmdutils v0.25.3 // indirect
29-
github.com/go-openapi/swag/conv v0.25.3 // indirect
30-
github.com/go-openapi/swag/fileutils v0.25.3 // indirect
31-
github.com/go-openapi/swag/jsonname v0.25.3 // indirect
32-
github.com/go-openapi/swag/jsonutils v0.25.3 // indirect
33-
github.com/go-openapi/swag/loading v0.25.3 // indirect
34-
github.com/go-openapi/swag/mangling v0.25.3 // indirect
35-
github.com/go-openapi/swag/netutils v0.25.3 // indirect
36-
github.com/go-openapi/swag/stringutils v0.25.3 // indirect
37-
github.com/go-openapi/swag/typeutils v0.25.3 // indirect
38-
github.com/go-openapi/swag/yamlutils v0.25.3 // indirect
26+
github.com/go-openapi/jsonpointer v0.22.4 // indirect
27+
github.com/go-openapi/jsonreference v0.21.4 // indirect
28+
github.com/go-openapi/swag v0.25.4 // indirect
29+
github.com/go-openapi/swag/cmdutils v0.25.4 // indirect
30+
github.com/go-openapi/swag/conv v0.25.4 // indirect
31+
github.com/go-openapi/swag/fileutils v0.25.4 // indirect
32+
github.com/go-openapi/swag/jsonname v0.25.4 // indirect
33+
github.com/go-openapi/swag/jsonutils v0.25.4 // indirect
34+
github.com/go-openapi/swag/loading v0.25.4 // indirect
35+
github.com/go-openapi/swag/mangling v0.25.4 // indirect
36+
github.com/go-openapi/swag/netutils v0.25.4 // indirect
37+
github.com/go-openapi/swag/stringutils v0.25.4 // indirect
38+
github.com/go-openapi/swag/typeutils v0.25.4 // indirect
39+
github.com/go-openapi/swag/yamlutils v0.25.4 // indirect
3940
github.com/go-task/slim-sprig/v3 v3.0.0 // indirect
4041
github.com/golang-jwt/jwt/v5 v5.3.1 // indirect
4142
github.com/google/btree v1.1.3 // indirect
4243
github.com/google/gnostic-models v0.7.1 // indirect
43-
github.com/google/pprof v0.0.0-20241029153458-d1b30febd7db // indirect
44+
github.com/google/pprof v0.0.0-20250403155104-27863c87afa6 // indirect
4445
github.com/kylelemons/godebug v1.1.0 // indirect
4546
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
4647
github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect
4748
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
4849
github.com/x448/float16 v0.8.4 // indirect
4950
go.yaml.in/yaml/v2 v2.4.3 // indirect
5051
go.yaml.in/yaml/v3 v3.0.4 // indirect
51-
golang.org/x/tools v0.39.0 // indirect
52+
golang.org/x/mod v0.33.0 // indirect
53+
golang.org/x/tools v0.42.0 // indirect
5254
gopkg.in/evanphx/json-patch.v4 v4.13.0 // indirect
5355
sigs.k8s.io/randfill v1.0.0 // indirect
54-
sigs.k8s.io/structured-merge-diff/v6 v6.3.1 // indirect
56+
sigs.k8s.io/structured-merge-diff/v6 v6.3.2 // indirect
5557
)
5658

5759
require (
@@ -63,38 +65,37 @@ require (
6365
github.com/fsnotify/fsnotify v1.9.0 // indirect
6466
github.com/go-logr/logr v1.4.3 // indirect
6567
github.com/go-logr/zapr v1.3.0 // indirect
66-
github.com/gogo/protobuf v1.3.2 // indirect
6768
github.com/google/go-cmp v0.7.0 // indirect
6869
github.com/google/uuid v1.6.0
6970
github.com/json-iterator/go v1.1.12 // indirect
7071
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
7172
github.com/modern-go/reflect2 v1.0.3-0.20250322232337-35a7c28c31ee // indirect
72-
github.com/onsi/ginkgo/v2 v2.22.0
73+
github.com/onsi/ginkgo/v2 v2.27.2
7374
github.com/prometheus/client_golang v1.23.2 // indirect
7475
github.com/prometheus/client_model v0.6.2 // indirect
75-
github.com/prometheus/common v0.67.4 // indirect
76+
github.com/prometheus/common v0.67.5 // indirect
7677
github.com/prometheus/procfs v0.19.2 // indirect
7778
github.com/spf13/pflag v1.0.10 // indirect
7879
github.com/stretchr/testify v1.11.1
7980
go.uber.org/multierr v1.11.0 // indirect
8081
go.uber.org/zap v1.27.0 // indirect
81-
golang.org/x/exp v0.0.0-20251113190631-e25ba8c21ef6
82-
golang.org/x/net v0.48.0 // indirect
83-
golang.org/x/oauth2 v0.33.0 // indirect
84-
golang.org/x/sys v0.39.0 // indirect
85-
golang.org/x/term v0.38.0 // indirect
86-
golang.org/x/text v0.32.0 // indirect
82+
golang.org/x/exp v0.0.0-20260211191109-2735e65f0518
83+
golang.org/x/net v0.50.0 // indirect
84+
golang.org/x/oauth2 v0.35.0 // indirect
85+
golang.org/x/sys v0.41.0 // indirect
86+
golang.org/x/term v0.40.0 // indirect
87+
golang.org/x/text v0.34.0 // indirect
8788
golang.org/x/time v0.14.0 // indirect
8889
gomodules.xyz/jsonpatch/v2 v2.5.0 // indirect
89-
google.golang.org/protobuf v1.36.10 // indirect
90+
google.golang.org/protobuf v1.36.11 // indirect
9091
gopkg.in/inf.v0 v0.9.1 // indirect
9192
gopkg.in/yaml.v2 v2.4.0
9293
gopkg.in/yaml.v3 v3.0.1
93-
k8s.io/api v0.34.3
94-
k8s.io/apiextensions-apiserver v0.34.3 // indirect
94+
k8s.io/api v0.35.1
95+
k8s.io/apiextensions-apiserver v0.35.1 // indirect
9596
k8s.io/klog/v2 v2.130.1
9697
k8s.io/kube-openapi v0.0.0-20260127142750-a19766b6e2d4 // indirect
97-
k8s.io/utils v0.0.0-20260106112306-0fe9cd71b2f8 // indirect
98+
k8s.io/utils v0.0.0-20260210185600-b8788abfbbc2 // indirect
9899
sigs.k8s.io/json v0.0.0-20250730193827-2d320260d730 // indirect
99100
sigs.k8s.io/yaml v1.6.0 // indirect
100101
software.sslmate.com/src/go-pkcs12 v0.4.0

0 commit comments

Comments
 (0)