Skip to content

Comments

fix: resolve compilation errors in get_git_test.go#579

Merged
CreatorHead merged 1 commit intomainfrom
fix/compilation-errors-get-git-test
Jan 14, 2026
Merged

fix: resolve compilation errors in get_git_test.go#579
CreatorHead merged 1 commit intomainfrom
fix/compilation-errors-get-git-test

Conversation

@CreatorHead
Copy link
Contributor

  • Replace tempDir(t) with t.TempDir() to use standard testing package method
  • Replace deprecated ioutil.WriteFile with os.WriteFile (deprecated since Go 1.16)
  • Fixes build failures and enables successful test execution

These changes ensure compatibility with modern Go versions and resolve undefined function errors that were preventing test compilation.

PCI review checklist

  • I have documented a clear reason for, and description of, the change I am making.

  • If applicable, I've documented a plan to revert these changes if they require more than reverting the pull request.

  • If applicable, I've documented the impact of any changes to security controls.

    Examples of changes to security controls include using new access control methods, adding or removing logging pipelines, etc.

- Replace tempDir(t) with t.TempDir() to use standard testing package method
- Replace deprecated ioutil.WriteFile with os.WriteFile (deprecated since Go 1.16)
- Fixes build failures and enables successful test execution

These changes ensure compatibility with modern Go versions and resolve
undefined function errors that were preventing test compilation.
@CreatorHead CreatorHead requested a review from a team as a code owner January 14, 2026 09:42
@CreatorHead CreatorHead merged commit 8b98aa7 into main Jan 14, 2026
12 checks passed
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