From a94c9df29e658095046316c563fc049cb0fb9512 Mon Sep 17 00:00:00 2001 From: Leo Antoli <430982+lantoli@users.noreply.github.com> Date: Mon, 11 Aug 2025 13:59:27 +0200 Subject: [PATCH 1/4] update Go to 1.24.6 --- go.mod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go.mod b/go.mod index 60c455e..61bc596 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/mongodb-labs/atlas-cli-plugin-terraform -go 1.24.1 +go 1.24.6 require ( github.com/fsnotify/fsnotify v1.9.0 From 1431ef275a21bfe546ccf0c8ec27bb047801b056 Mon Sep 17 00:00:00 2001 From: Leo Antoli <430982+lantoli@users.noreply.github.com> Date: Mon, 11 Aug 2025 13:59:45 +0200 Subject: [PATCH 2/4] Update Go linter to 2.3.1 --- .github/workflows/code-health.yml | 2 +- Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/code-health.yml b/.github/workflows/code-health.yml index 6bcfbfe..0b844f9 100644 --- a/.github/workflows/code-health.yml +++ b/.github/workflows/code-health.yml @@ -48,7 +48,7 @@ jobs: - name: golangci-lint uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 with: - version: v2.1.6 # Also update GOLANGCI_VERSION variable in GNUmakefile when updating this version + version: v2.3.1 # Also update GOLANGCI_VERSION variable in GNUmakefile when updating this version - name: actionlint run: | make tools diff --git a/Makefile b/Makefile index e211920..68ab53f 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ CLI_DESTINATION=./bin/$(CLI_BINARY_NAME) MANIFEST_FILE?=./bin/manifest.yml WIN_MANIFEST_FILE?=./bin/manifest.windows.yml -GOLANGCI_VERSION=v2.1.6 # Also update golangci-lint GH action in code-health.yml when updating this version +GOLANGCI_VERSION=v2.3.1 # Also update golangci-lint GH action in code-health.yml when updating this version .PHONY: build build: ## Generate the binary in ./bin From 1c770d07c0a2698a4f6222b607bffa9bbd01e5b8 Mon Sep 17 00:00:00 2001 From: Leo Antoli <430982+lantoli@users.noreply.github.com> Date: Mon, 11 Aug 2025 13:59:59 +0200 Subject: [PATCH 3/4] fix linter issues --- test/e2e/e2e_helper.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/e2e/e2e_helper.go b/test/e2e/e2e_helper.go index 9053b51..bbff09f 100644 --- a/test/e2e/e2e_helper.go +++ b/test/e2e/e2e_helper.go @@ -1,6 +1,7 @@ package e2e import ( + "context" "os/exec" "testing" @@ -11,7 +12,7 @@ import ( func RunTF(args ...string) (string, error) { args = append([]string{"tf"}, args...) - cmd := exec.Command("atlas", args...) + cmd := exec.CommandContext(context.Background(), "atlas", args...) resp, err := cmd.CombinedOutput() return string(resp), err } From d8f6b5af818a9e54375b0eed5e43391518f8a47c Mon Sep 17 00:00:00 2001 From: Leo Antoli <430982+lantoli@users.noreply.github.com> Date: Tue, 12 Aug 2025 09:06:02 +0200 Subject: [PATCH 4/4] ignore common files --- .gitignore | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.gitignore b/.gitignore index 497fe3e..4114333 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,14 @@ bin bin-plugin .vscode +.DS_Store +.idea +.windsurf +CLAUDE.md +.claude +*.env +*.bak +*.log +*.mdc +__debug_* +*~