Skip to content

chore: migrate to Go 1.24 tool directive, bump testify and goleak#26

Merged
ankurs merged 4 commits intomainfrom
chore/modernize-tooling
Mar 24, 2026
Merged

chore: migrate to Go 1.24 tool directive, bump testify and goleak#26
ankurs merged 4 commits intomainfrom
chore/modernize-tooling

Conversation

@ankurs
Copy link
Copy Markdown
Member

@ankurs ankurs commented Mar 24, 2026

Summary

  • Bump stretchr/testify v1.10.0 → v1.11.1
  • Bump uber-go/goleak v1.1.12 → v1.3.0
  • Add golangci-lint v2, gomarkdoc, and govulncheck as Go tool dependencies via tool directive in go.mod
  • Remove tools/tools.go (replaced by tool directive)
  • Remove install target from Makefile
  • Update Makefile to use go tool instead of go install
  • Add govulncheck to make lint target for vulnerability scanning
  • Upgrade go-git/go-git/v5 v5.3.0 → v5.17.0 (fixes CVE-2023-49569, CVE-2025-21613)

Test plan

  • make build passes
  • make test passes (go test -race ./...)
  • make lint passes (golangci-lint 0 issues + govulncheck no vulnerabilities)

- Bump stretchr/testify v1.10.0 to v1.11.1
- Bump uber-go/goleak v1.1.12 to v1.3.0
- Add golangci-lint v2 and gomarkdoc as Go tool dependencies in go.mod
- Remove tools/tools.go (replaced by tool directive)
- Remove install target from Makefile
- Update Makefile to use go tool instead of go install
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Mar 24, 2026

Warning

Rate limit exceeded

@ankurs has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 27 minutes and 52 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: bdc0ecca-b335-4f8c-80f4-e5fb7f232912

📥 Commits

Reviewing files that changed from the base of the PR and between 9292d30 and 443ed43.

⛔ Files ignored due to path filters (1)
  • go.sum is excluded by !**/*.sum
📒 Files selected for processing (4)
  • .github/workflows/go.yml
  • Makefile
  • go.mod
  • tools/tools.go
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/modernize-tooling

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

- Upgrade go-git/go-git/v5 v5.3.0 → v5.17.0 (CVE-2023-49569, CVE-2025-21613)
- Add govulncheck as Go tool dependency
- Run govulncheck as part of make lint
Copy link
Copy Markdown

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

This PR updates the repo’s Go tooling/dependencies by migrating tool tracking into go.mod (using the tool directive), bumping key test/lint dependencies, and simplifying local developer workflows in the Makefile.

Changes:

  • Bump stretchr/testify to v1.11.1 and go.uber.org/goleak to v1.3.0.
  • Replace the legacy tools/tools.go approach with a tool (...) block in go.mod and remove tools/tools.go.
  • Update the Makefile to run tools via go tool and remove the install target.

Reviewed changes

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

File Description
tools/tools.go Removes legacy //go:build tools tool-dependency tracking file.
go.mod Updates deps; adds tool (...) block for tool dependencies.
go.sum Refreshes sums consistent with dependency/tool updates.
Makefile Drops install; runs lint/docs via go tool.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread go.mod
Comment thread Makefile
Comment thread Makefile
Replace standalone golangci-lint-action with make lint to ensure CI
uses the same go.mod-pinned tool versions (golangci-lint + govulncheck)
as local development.
Copy link
Copy Markdown

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

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


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Fixes vulnerabilities in os, net/url, crypto/tls, crypto/x509,
encoding/asn1, encoding/pem — all patched in Go 1.25.8.
Copy link
Copy Markdown

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

Copilot reviewed 4 out of 5 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread go.mod
@ankurs ankurs merged commit c33c2da into main Mar 24, 2026
9 checks passed
@ankurs ankurs deleted the chore/modernize-tooling branch March 24, 2026 12:05
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