Skip to content

Commit 800d17a

Browse files
lantoliCopilot
andauthored
chore: Update to Go 1.25.5 and Go linter 2.7.2 (#3990)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 7d1267e commit 800d17a

File tree

6 files changed

+6
-7
lines changed

6 files changed

+6
-7
lines changed

.github/workflows/code-health.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
- name: golangci-lint
5757
uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20
5858
with:
59-
version: v2.4.0 # Also update GOLANGCI_VERSION variable in GNUmakefile when updating this version
59+
version: v2.7.2 # Also update GOLANGCI_VERSION variable in Makefile when updating this version
6060
- name: actionlint
6161
run: |
6262
make tools

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ GITTAG=$(shell git describe --always --tags)
1616
VERSION=$(GITTAG:v%=%)
1717
LINKER_FLAGS=-s -w -X 'github.com/mongodb/terraform-provider-mongodbatlas/version.ProviderVersion=${VERSION}'
1818

19-
GOLANGCI_VERSION=v2.4.0 # Also update golangci-lint GH action in code-health.yml when updating this version
19+
GOLANGCI_VERSION=v2.7.2 # Also update golangci-lint GH action in code-health.yml when updating this version
2020

2121
export PATH := $(shell go env GOPATH)/bin:$(PATH)
2222
export SHELL := env PATH=$(PATH) /bin/bash

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/terraform-provider-mongodbatlas
22

3-
go 1.25.0
3+
go 1.25.5
44

55
require (
66
github.com/andygrunwald/go-jira/v2 v2.0.0-20240116150243-50d59fe116d6

internal/service/cluster/resource_cluster_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ func basicTestCase(tb testing.TB) *resource.TestCase {
4747
resource.TestCheckResourceAttrSet(resourceName, "mongo_uri"),
4848
resource.TestCheckResourceAttrSet(resourceName, "replication_specs.#"),
4949
resource.TestCheckResourceAttrSet(resourceName, "replication_specs.0.regions_config.#"),
50-
resource.TestCheckResourceAttr(resourceName, "pit_enabled", "true"),
5150
resource.TestCheckResourceAttr(resourceName, "retain_backups_enabled", "true"),
5251
resource.TestCheckResourceAttr(resourceName, "version_release_system", "LTS"),
5352
resource.TestCheckResourceAttr(resourceName, "accept_data_risks_and_force_replica_set_reconfig", ""),

internal/service/projectinvitation/resource_project_invitation_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ func TestAccProjectRSProjectInvitation_basic(t *testing.T) {
4848
resource.TestCheckResourceAttr(resourceName, "username", name),
4949
resource.TestCheckResourceAttr(resourceName, "roles.#", "2"),
5050
resource.TestCheckTypeSetElemAttr(resourceName, "roles.*", updateRoles[0]),
51-
resource.TestCheckTypeSetElemAttr(resourceName, "roles.*", updateRoles[0]),
51+
resource.TestCheckTypeSetElemAttr(resourceName, "roles.*", updateRoles[1]),
5252
),
5353
},
5454
{

internal/testutil/acc/pre_check.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ func PreCheckBasicSleep(tb testing.TB, clusterInfo *ClusterInfo, projectID, clus
4848
}
4949

5050
// PreCheck checks common Atlas environment variables and MONGODB_ATLAS_PROJECT_ID.
51-
// Deprecated: it should not be used as MONGODB_ATLAS_PROJECT_ID is not intended to be used in CI.
52-
// Use PreCheckBasic instead.
51+
52+
// Deprecated: it should not be used as MONGODB_ATLAS_PROJECT_ID is not intended to be used in CI, use PreCheckBasic instead.
5353
func PreCheck(tb testing.TB) {
5454
tb.Helper()
5555
PreCheckBasic(tb)

0 commit comments

Comments
 (0)