Skip to content

Commit c7aa7cd

Browse files
authored
chore: Update Go to 1.25.0 (#1420)
1 parent 7d32693 commit c7aa7cd

File tree

5 files changed

+6
-4
lines changed

5 files changed

+6
-4
lines changed

.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@4afd733a84b1f43292c63897423277bb7f4313a9
5454
with:
55-
version: v2.3.1 # Also update GOLANGCI_VERSION variable in Makefile when updating this version
55+
version: v2.4.0 # 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.3.1 # Also update golangci-lint GH action in code-health.yml when updating this version
11+
GOLANGCI_VERSION=v2.4.0 # Also update golangci-lint GH action in code-health.yml when updating this version
1212

1313
.PHONY: submit
1414
submit:

cfn-resources/.golangci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@ linters:
101101
rules:
102102
- path: (.+)\.go$
103103
text: declaration of ".*" shadows declaration at line .*
104+
- path: util/.*\.go$
105+
text: "var-naming: avoid meaningless package names"
104106
formatters:
105107
enable:
106108
- gofmt

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.24.6
3+
go 1.25.0
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/util/util.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
package util //nolint:revive // util is an established package name in this codebase
15+
package util
1616

1717
import (
1818
"context"

0 commit comments

Comments
 (0)