[PR #2920] [MERGED] modernize: run gopls modernize to bring up to 1.25 #2937

Closed
opened 2025-12-29 04:19:44 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/juanfont/headscale/pull/2920
Author: @kradalby
Created: 11/28/2025
Status: Merged
Merged: 12/1/2025
Merged by: @kradalby

Base: mainHead: kradalby/modernize


📝 Commits (1)

  • a237033 modernize: run gopls modernize to bring up to 1.25

📊 Changes

18 files changed (+78 additions, -116 deletions)

View changed files

📝 cmd/headscale/cli/utils.go (+2 -2)
📝 cmd/hi/docker.go (+5 -5)
📝 hscontrol/auth_test.go (+4 -2)
📝 hscontrol/db/text_serialiser.go (+3 -3)
📝 hscontrol/mapper/batcher_test.go (+8 -22)
📝 hscontrol/policy/v2/filter.go (+5 -10)
📝 hscontrol/policy/v2/filter_test.go (+2 -8)
📝 hscontrol/policy/v2/types.go (+2 -2)
📝 hscontrol/policy/v2/utils.go (+3 -2)
📝 hscontrol/state/debug.go (+2 -2)
📝 hscontrol/state/node_store_test.go (+8 -8)
📝 hscontrol/types/common.go (+6 -4)
📝 hscontrol/util/log.go (+5 -5)
📝 integration/api_auth_test.go (+13 -13)
📝 integration/helpers.go (+0 -7)
📝 integration/hsic/hsic.go (+2 -3)
📝 integration/scenario.go (+3 -4)
📝 tools/capver/main.go (+5 -14)

📄 Description

https://pkg.go.dev/golang.org/x/tools/gopls/internal/analysis/modernize Use golang 1.25 features


🔄 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/juanfont/headscale/pull/2920 **Author:** [@kradalby](https://github.com/kradalby) **Created:** 11/28/2025 **Status:** ✅ Merged **Merged:** 12/1/2025 **Merged by:** [@kradalby](https://github.com/kradalby) **Base:** `main` ← **Head:** `kradalby/modernize` --- ### 📝 Commits (1) - [`a237033`](https://github.com/juanfont/headscale/commit/a2370337b51bd007a2a1ec8d22629faa4553a0cf) modernize: run gopls modernize to bring up to 1.25 ### 📊 Changes **18 files changed** (+78 additions, -116 deletions) <details> <summary>View changed files</summary> 📝 `cmd/headscale/cli/utils.go` (+2 -2) 📝 `cmd/hi/docker.go` (+5 -5) 📝 `hscontrol/auth_test.go` (+4 -2) 📝 `hscontrol/db/text_serialiser.go` (+3 -3) 📝 `hscontrol/mapper/batcher_test.go` (+8 -22) 📝 `hscontrol/policy/v2/filter.go` (+5 -10) 📝 `hscontrol/policy/v2/filter_test.go` (+2 -8) 📝 `hscontrol/policy/v2/types.go` (+2 -2) 📝 `hscontrol/policy/v2/utils.go` (+3 -2) 📝 `hscontrol/state/debug.go` (+2 -2) 📝 `hscontrol/state/node_store_test.go` (+8 -8) 📝 `hscontrol/types/common.go` (+6 -4) 📝 `hscontrol/util/log.go` (+5 -5) 📝 `integration/api_auth_test.go` (+13 -13) 📝 `integration/helpers.go` (+0 -7) 📝 `integration/hsic/hsic.go` (+2 -3) 📝 `integration/scenario.go` (+3 -4) 📝 `tools/capver/main.go` (+5 -14) </details> ### 📄 Description https://pkg.go.dev/golang.org/x/tools/gopls/internal/analysis/modernize Use golang 1.25 features --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 04:19:44 +01:00
adam closed this issue 2025-12-29 04:19:44 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/headscale#2937