Skip to content

Conversation

lantoli
Copy link
Collaborator

@lantoli lantoli commented Aug 11, 2025

Description

Update to Go 1.24.6 and Go linter to 2.3.1

Link to any related issue(s): CLOUDP-337347

Type of change:

  • Bug fix (non-breaking change which fixes an issue). Please, add the "bug" label to the PR.
  • New feature (non-breaking change which adds functionality). Please, add the "enhancement" label to the PR. A migration guide must be created or updated if the new feature will go in a major version.
  • Breaking change (fix or feature that would cause existing functionality to not work as expected). Please, add the "breaking change" label to the PR. A migration guide must be created or updated.
  • This change requires a documentation update
  • Documentation fix/enhancement

Required Checklist:

  • I have signed the MongoDB CLA
  • I have read the contributing guides
  • I have checked that this change does not generate any credentials and that they are NOT accidentally logged anywhere.
  • I have added tests that prove my fix is effective or that my feature works per HashiCorp requirements
  • I have added any necessary documentation (if appropriate)
  • I have run make fmt and formatted my code
  • If changes include deprecations or removals I have added appropriate changelog entries.
  • If changes include removal or addition of 3rd party GitHub actions, I updated our internal document. Reach out to the APIx Integration slack channel to get access to the internal document.

Further comments

@@ -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...)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix linter issue:

os/exec.Command must not be called. use os/exec.CommandContext (noctx)

@lantoli
Copy link
Collaborator Author

lantoli commented Aug 11, 2025

snyk false positives

@lantoli lantoli marked this pull request as ready for review August 11, 2025 12:05
@Copilot Copilot AI review requested due to automatic review settings August 11, 2025 12:05
@lantoli lantoli requested a review from a team as a code owner August 11, 2025 12:05
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Updates the project's Go version from 1.24.1 to 1.24.6 and upgrades the golangci-lint tool from v2.1.6 to v2.3.1 for improved code quality tooling.

  • Updated Go runtime version to 1.24.6
  • Upgraded golangci-lint to v2.3.1 in both Makefile and GitHub workflow
  • Modified test helper to use context-aware command execution

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
go.mod Updates Go version requirement from 1.24.1 to 1.24.6
Makefile Updates GOLANGCI_VERSION from v2.1.6 to v2.3.1
.github/workflows/code-health.yml Updates golangci-lint action version to v2.3.1
test/e2e/e2e_helper.go Replaces exec.Command with exec.CommandContext for better context handling

*.log
*.mdc
__debug_*
*~
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

common ignore files as in Terraform repo

Copy link
Contributor

@EspenAlbert EspenAlbert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TY!

@lantoli lantoli merged commit f0256f0 into main Aug 12, 2025
5 of 7 checks passed
@lantoli lantoli deleted the CLOUDP-337347_go_1.24.6 branch August 12, 2025 07:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants