1
0
mirror of https://github.com/juanfont/headscale.git synced 2026-02-23 13:50:36 +01:00
juanfont.headscale/hscontrol/types
Kristoffer Dalby 0f6d312ada all: upgrade to Go 1.26rc2 and modernize codebase
This commit upgrades the codebase from Go 1.25.5 to Go 1.26rc2 and
adopts new language features.

Toolchain updates:
- go.mod: go 1.25.5 → go 1.26rc2
- flake.nix: buildGo125Module → buildGo126Module, go_1_25 → go_1_26
- flake.nix: build golangci-lint from source with Go 1.26
- Dockerfile.integration: golang:1.25-trixie → golang:1.26rc2-trixie
- Dockerfile.tailscale-HEAD: golang:1.25-alpine → golang:1.26rc2-alpine
- Dockerfile.derper: golang:alpine → golang:1.26rc2-alpine
- .goreleaser.yml: go mod tidy -compat=1.25 → -compat=1.26
- cmd/hi/run.go: fallback Go version 1.25 → 1.26rc2
- .pre-commit-config.yaml: simplify golangci-lint hook entry

Code modernization using Go 1.26 features:
- Replace tsaddr.SortPrefixes with slices.SortFunc + netip.Prefix.Compare
- Replace ptr.To(x) with new(x) syntax
- Replace errors.As with errors.AsType[T]

Lint rule updates:
- Add forbidigo rules to prevent regression to old patterns
2026-02-08 12:35:23 +01:00
..
change all: upgrade to Go 1.26rc2 and modernize codebase 2026-02-08 12:35:23 +01:00
testdata Restore support for "Override local DNS" (#2438) 2025-04-17 17:16:59 +02:00
api_key.go types: add MarshalZerologObject to domain types 2026-02-06 07:40:29 +01:00
common_test.go mapper: produce map before poll (#2628) 2025-07-28 11:15:53 +02:00
common.go all: fix golangci-lint issues (#3064) 2026-02-06 21:45:32 +01:00
config_test.go all: fix golangci-lint issues (#3064) 2026-02-06 21:45:32 +01:00
config.go all: upgrade to Go 1.26rc2 and modernize codebase 2026-02-08 12:35:23 +01:00
const.go improve testing of route failover logic 2024-04-15 12:31:53 +02:00
node_tags_test.go all: upgrade to Go 1.26rc2 and modernize codebase 2026-02-08 12:35:23 +01:00
node_test.go all: fix golangci-lint issues (#3064) 2026-02-06 21:45:32 +01:00
node.go all: upgrade to Go 1.26rc2 and modernize codebase 2026-02-08 12:35:23 +01:00
policy.go feat: implements apis for managing headscale policy (#1792) 2024-07-18 07:38:25 +02:00
preauth_key_test.go all: upgrade to Go 1.26rc2 and modernize codebase 2026-02-08 12:35:23 +01:00
preauth_key.go all: fix golangci-lint issues (#3064) 2026-02-06 21:45:32 +01:00
routes.go Redo route code (#2422) 2025-02-26 16:22:55 +01:00
types_clone.go make tags first class node owner (#2885) 2025-12-02 12:01:25 +01:00
types_view.go gen: regenerate protobuf and type views 2026-01-21 19:17:10 +00:00
users_test.go all: fix golangci-lint issues (#3064) 2026-02-06 21:45:32 +01:00
users.go all: fix golangci-lint issues (#3064) 2026-02-06 21:45:32 +01:00
version.go all: fix golangci-lint issues (#3064) 2026-02-06 21:45:32 +01:00