Skip to content

Commit 2c78479

Browse files
authored
chore: Update Go to 1.26.2 and golangci-lint to v2.11.4 (#1644)
1 parent 9960394 commit 2c78479

7 files changed

Lines changed: 6 additions & 81 deletions

File tree

.github/workflows/code-health.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
- name: golangci-lint
5353
uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20
5454
with:
55-
version: v2.8.0 # Also update GOLANGCI_VERSION variable in Makefile when updating this version
55+
version: v2.11.4 # Also update GOLANGCI_VERSION variable in Makefile when updating this version
5656
working-directory: cfn-resources
5757
- name: actionlint
5858
run: |

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ldXflags=github.com/mongodb/mongodbatlas-cloudformation-resources/util.defaultLo
88
ldXflagsD=github.com/mongodb/mongodbatlas-cloudformation-resources/util.defaultLogLevel=debug
99

1010
MOCKERY_VERSION=v3.5.3
11-
GOLANGCI_VERSION=v2.8.0 # Also update golangci-lint GH action in code-health.yml when updating this version
11+
GOLANGCI_VERSION=v2.11.4 # Also update golangci-lint GH action in code-health.yaml when updating this version
1212

1313
.PHONY: submit
1414
submit:

cfn-resources/Dockerfile

Lines changed: 0 additions & 51 deletions
This file was deleted.

cfn-resources/go.mod

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

3-
go 1.25.7
3+
go 1.26.2
44

55
// Replacing with local copy of Atlas SDK v20231115014 to support new AdvancedConfiguration in *admin.AdvancedClusterDescription
66
replace go.mongodb.org/atlas-sdk/v20231115014 => ../vendor/go.mongodb.org/atlas-sdk/v20231115014

cfn-resources/test/e2e/utility/aws_helper.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,12 @@ func getStackEventsString(svc *cfn.Client, stackID string) string {
8484
}
8585
status := string(event.ResourceStatus)
8686
if strings.Contains(status, "FAILED") || strings.Contains(status, "ROLLBACK") {
87-
eventsStr.WriteString(fmt.Sprintf("[%s] %s - %s: %s - %s\n",
87+
fmt.Fprintf(&eventsStr, "[%s] %s - %s: %s - %s\n",
8888
event.Timestamp.Format("15:04:05"),
8989
util.SafeString(event.LogicalResourceId),
9090
util.SafeString(event.ResourceType),
9191
status,
92-
util.SafeString(event.ResourceStatusReason)))
92+
util.SafeString(event.ResourceStatusReason))
9393
count++
9494
}
9595
}

cfn-resources/util/deployment_secret.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ func CreateDeploymentSecret(req *handler.Request, cfnID *ResourceIdentifier, pub
4242
Properties: &properties,
4343
}
4444
log.Printf("deploySecret: %v", deploySecret)
45-
deploySecretString, _ := json.Marshal(deploySecret)
45+
deploySecretString, _ := json.Marshal(deploySecret) //nolint:gosec // intentional: marshaling secret struct to store in AWS Secrets Manager
4646
log.Printf("deploySecretString: %s", deploySecretString)
4747

4848
log.Println("===============================================")

dev-shell.sh

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)