mirror of
https://github.com/coredns/coredns.git
synced 2026-10-09 03:55:21 -04:00
core: upgrade Go requirement to 1.26.0 (#8466)
* core: upgrade Go requirement to 1.26.0 As golang 1.27 has been released, this PR - Bump Go version requirement to 1.26.0 - Update Go build version to 1.27.0 This is also for solving the issue encountered in 8092 of k8s update Signed-off-by: Yong Tang <yong.tang.github@outlook.com> * Bump golang ci Signed-off-by: Yong Tang <yong.tang.github@outlook.com> * Fix Signed-off-by: Yong Tang <yong.tang.github@outlook.com> * Fix Signed-off-by: Yong Tang <yong.tang.github@outlook.com> * Fix Signed-off-by: Yong Tang <yong.tang.github@outlook.com> * Migrate faillint to forbidigo, as failint has not bee updated for more than a year Signed-off-by: Yong Tang <yong.tang.github@outlook.com> --------- Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
This commit is contained in:
@@ -11,7 +11,7 @@ import (
|
||||
mcs "sigs.k8s.io/mcs-api/pkg/apis/v1alpha1"
|
||||
)
|
||||
|
||||
func ptrTo[T any](v T) *T { return &v }
|
||||
//go:fix inline
|
||||
|
||||
// dump renders an object for a failure message. %+v prints an aliased pointer field as
|
||||
// an address, which hides the value that actually differs, so render as JSON instead.
|
||||
@@ -76,7 +76,7 @@ func deepCopyCases() []struct {
|
||||
Ports: []api.ServicePort{{
|
||||
Name: "http", Protocol: api.ProtocolTCP, Port: 80,
|
||||
// A pointer field, so a slice copy alone leaves it shared.
|
||||
AppProtocol: ptrTo("kubernetes.io/h2c"),
|
||||
AppProtocol: new("kubernetes.io/h2c"),
|
||||
}},
|
||||
ExternalIPs: []string{"1.2.3.4"},
|
||||
}},
|
||||
@@ -89,7 +89,7 @@ func deepCopyCases() []struct {
|
||||
Type: mcs.ClusterSetIP,
|
||||
Ports: []mcs.ServicePort{{
|
||||
Name: "http", Protocol: api.ProtocolTCP, Port: 80,
|
||||
AppProtocol: ptrTo("kubernetes.io/h2c"),
|
||||
AppProtocol: new("kubernetes.io/h2c"),
|
||||
}},
|
||||
}},
|
||||
{"Namespace", &Namespace{Version: "1", Name: "testns"}},
|
||||
|
||||
Reference in New Issue
Block a user