Skip to content

Commit 6fe65ee

Browse files
authored
Bump Go to 1.27
1 parent 2f1df3b commit 6fe65ee

11 files changed

Lines changed: 15 additions & 18 deletions

File tree

‎.github/workflows/github-actions.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: checks
22
env:
3-
GO_VERSION: '1.26'
3+
GO_VERSION: '1.27'
44
on:
55
pull_request:
66
branches:

‎.golangci.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
version: "2"
22
run:
3-
go: "1.26"
3+
go: "1.27"
44
linters:
55
default: none
66
enable:

‎Makefile‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ REGISTRY ?= $(DEFAULT_REGISTRY)
1414
BUILDX_OUTPUT ?= load
1515

1616
# GO_IMAGE golang image used in default GO_SHELL
17-
GO_IMAGE ?= golang:1.26
17+
GO_IMAGE ?= golang:1.27
1818

1919
# GO_CMD go command used for go build
2020
GO_CMD ?= go
@@ -32,7 +32,7 @@ HELM_IMAGE ?= alpine/helm:3.16.1
3232
HELM_CHART_VERSION ?=
3333

3434
# GOLANGCI-LINT_VERSION golangci-lint version for install-lint
35-
GOLANGCI-LINT_VERSION ?= v2.12.2
35+
GOLANGCI-LINT_VERSION ?= v2.15.0
3636

3737
# MOCKGEN_VERSION mockgen version for mocks target
3838
MOCKGEN_VERSION ?= v0.6.0

‎core/concurrent_core.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9502,7 +9502,7 @@ func (o *ConcurrentTridentOrchestrator) DeleteObjectStore(ctx context.Context, s
95029502
}
95039503

95049504
func shuffleStores(stores []object.Store) {
9505-
rand.Shuffle(len(stores), func(i, j int) {
9505+
rand.Shuffle(len(stores), func(i, j int) { //nolint:gosec // non-cryptographic store ordering
95069506
stores[i], stores[j] = stores[j], stores[i]
95079507
})
95089508
}

‎go.mod‎

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/netapp/trident
22

3-
go 1.26.0
3+
go 1.27.0
44

55
require (
66
cloud.google.com/go/compute v1.72.0
@@ -24,6 +24,7 @@ require (
2424
github.com/elastic/go-sysinfo v1.15.5
2525
github.com/evanphx/json-patch/v5 v5.9.11
2626
github.com/ghodss/yaml v1.0.1-0.20220118164431-d8423dcdf344 // 1/18/2022
27+
github.com/go-logr/logr v1.4.4
2728
github.com/go-openapi/errors v0.22.9
2829
github.com/go-openapi/runtime v0.33.3
2930
github.com/go-openapi/strfmt v0.27.3
@@ -73,14 +74,10 @@ require (
7374
k8s.io/mount-utils v0.37.1 // github.com/kubernetes/mount-utils
7475
k8s.io/utils v0.0.0-20260707023825-cf1189d6abe3 // github.com/kubernetes/utils
7576
sigs.k8s.io/cloud-provider-azure/pkg/azclient v0.23.2 // github.com/kubernetes-sigs/cloud-provider-azure
76-
sigs.k8s.io/yaml v1.6.0
77-
)
78-
79-
require (
80-
github.com/go-logr/logr v1.4.4
8177
sigs.k8s.io/container-object-storage-interface/client v0.0.0-20260817202106-e761fd730bf4
8278
sigs.k8s.io/container-object-storage-interface/proto v0.0.0-20260817202106-e761fd730bf4
8379
sigs.k8s.io/controller-runtime v0.25.2
80+
sigs.k8s.io/yaml v1.6.0
8481
)
8582

8683
require (

‎internal/crypto/crypto.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ func EncryptStringWithAES(plainText string, key []byte) (string, error) {
230230
if _, err := io.ReadFull(cryptoRand.Reader, iv); err != nil {
231231
return "", err
232232
}
233-
cfb := cipher.NewCFBEncrypter(block, iv)
233+
cfb := cipher.NewCFBEncrypter(block, iv) //nolint:gosec // iv is randomized above via crypto/rand, not hardcoded
234234

235235
// Encrypt
236236
cfb.XORKeyStream(encryptedBytes[aes.BlockSize:], paddedBytes)

‎storage_class/storage_class.go‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ func SortPoolsByPreferredTopologies(
575575
copy(remainingPools, newRemainingPools)
576576

577577
// shuffle bucket
578-
rand.Shuffle(len(poolBucket), func(i, j int) {
578+
rand.Shuffle(len(poolBucket), func(i, j int) { //nolint:gosec // non-cryptographic pool ordering
579579
poolBucket[i], poolBucket[j] = poolBucket[j], poolBucket[i]
580580
})
581581

@@ -584,7 +584,7 @@ func SortPoolsByPreferredTopologies(
584584
}
585585

586586
// shuffle and add leftover pools the did not match any preference
587-
rand.Shuffle(len(remainingPools), func(i, j int) {
587+
rand.Shuffle(len(remainingPools), func(i, j int) { //nolint:gosec // non-cryptographic pool ordering
588588
remainingPools[i], remainingPools[j] = remainingPools[j], remainingPools[i]
589589
})
590590
return append(orderedPools, remainingPools...)

‎storage_drivers/azure/api/azure_discovery.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -911,7 +911,7 @@ func (c Client) CapacityPoolsForStoragePool(
911911
}
912912

913913
// Shuffle the pools
914-
rand.Shuffle(len(cPools), func(i, j int) { cPools[i], cPools[j] = cPools[j], cPools[i] })
914+
rand.Shuffle(len(cPools), func(i, j int) { cPools[i], cPools[j] = cPools[j], cPools[i] }) //nolint:gosec // non-cryptographic pool ordering
915915

916916
return cPools
917917
}

‎storage_drivers/fake/fake.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -706,7 +706,7 @@ func (d *StorageDriver) getPoolsForCreate(
706706
}
707707

708708
// Shuffle physical pools
709-
rand.Shuffle(len(candidatePools), func(i, j int) {
709+
rand.Shuffle(len(candidatePools), func(i, j int) { //nolint:gosec // non-cryptographic pool ordering
710710
candidatePools[i], candidatePools[j] = candidatePools[j], candidatePools[i]
711711
})
712712

‎storage_drivers/gcp/api/gcnv_discovery.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ func SortCPoolsByPreferredTopologies(
518518
) []*CapacityPool {
519519
orderedCPools := make([]*CapacityPool, 0)
520520

521-
rand.Shuffle(len(cPools), func(i, j int) {
521+
rand.Shuffle(len(cPools), func(i, j int) { //nolint:gosec // non-cryptographic pool ordering
522522
cPools[i], cPools[j] = cPools[j], cPools[i]
523523
})
524524

0 commit comments

Comments
 (0)