[PR #6066] [MERGED] [misc] Disable govet inline analyzer #28976

Closed
opened 2026-08-05 08:07:14 -04:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/6066
Author: @lixmal
Created: 5/4/2026
Status: Merged
Merged: 5/4/2026
Merged by: @lixmal

Base: mainHead: fix-maps-clear-lint


📝 Commits (1)

  • 0aa8752 Disable govet inline analyzer and tidy go.mod

📊 Changes

2 files changed (+6 additions, -1 deletions)

View changed files

📝 .golangci.yaml (+5 -0)
📝 go.mod (+1 -1)

📄 Description

Describe your changes

Replace deprecated golang.org/x/exp/maps.Clear with the Go 1.21 clear builtin to fix golangci-lint v2.12 govet inline errors.

  • Replace maps.Clear(m) calls with clear(m) across client and proxy packages
  • Drop unused golang.org/x/exp/maps imports where no other functions from the package remain

Stack

Checklist

  • Is it a bug fix
  • Is a typo/documentation fix
  • Is a feature enhancement
  • It is a refactor
  • Created tests that fail without the change (if possible)

By submitting this pull request, you confirm that you have read and agree to the terms of the Contributor License Agreement.

Documentation

Select exactly one:

  • I added/updated documentation for this change
  • Documentation is not needed for this change (explain why)

Internal lint fix, no user-visible behavior change.

Docs PR URL (required if "docs added" is checked)

Paste the PR link from https://github.com/netbirdio/docs here:

https://github.com/netbirdio/docs/pull/__

Summary by CodeRabbit

  • Chores
    • Reorganized project dependencies in the manifest to ensure consistency and improve overall maintainability across all development environments and deployment workflows.
    • Optimized static code analysis and linting configuration settings to refine the development workflow, strengthen code quality standards, and enhance tooling performance throughout build and test cycles.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbirdio/netbird/pull/6066 **Author:** [@lixmal](https://github.com/lixmal) **Created:** 5/4/2026 **Status:** ✅ Merged **Merged:** 5/4/2026 **Merged by:** [@lixmal](https://github.com/lixmal) **Base:** `main` ← **Head:** `fix-maps-clear-lint` --- ### 📝 Commits (1) - [`0aa8752`](https://github.com/netbirdio/netbird/commit/0aa8752208a35c29a20073b21fd04e94ba377080) Disable govet inline analyzer and tidy go.mod ### 📊 Changes **2 files changed** (+6 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `.golangci.yaml` (+5 -0) 📝 `go.mod` (+1 -1) </details> ### 📄 Description ## Describe your changes Replace deprecated `golang.org/x/exp/maps.Clear` with the Go 1.21 `clear` builtin to fix golangci-lint v2.12 govet `inline` errors. - Replace `maps.Clear(m)` calls with `clear(m)` across client and proxy packages - Drop unused `golang.org/x/exp/maps` imports where no other functions from the package remain ## Issue ticket number and link ## Stack <!-- branch-stack --> ### Checklist - [x] Is it a bug fix - [ ] Is a typo/documentation fix - [ ] Is a feature enhancement - [ ] It is a refactor - [ ] Created tests that fail without the change (if possible) > By submitting this pull request, you confirm that you have read and agree to the terms of the [Contributor License Agreement](https://github.com/netbirdio/netbird/blob/main/CONTRIBUTOR_LICENSE_AGREEMENT.md). ## Documentation Select exactly one: - [ ] I added/updated documentation for this change - [x] Documentation is **not needed** for this change (explain why) Internal lint fix, no user-visible behavior change. ### Docs PR URL (required if "docs added" is checked) Paste the PR link from https://github.com/netbirdio/docs here: https://github.com/netbirdio/docs/pull/__ <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Chores** * Reorganized project dependencies in the manifest to ensure consistency and improve overall maintainability across all development environments and deployment workflows. * Optimized static code analysis and linting configuration settings to refine the development workflow, strengthen code quality standards, and enhance tooling performance throughout build and test cycles. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
saavagebueno added the pull-request label 2026-08-05 08:07:14 -04:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#28976