mirror of
				https://github.com/coredns/coredns.git
				synced 2025-10-30 17:53:21 -04:00 
			
		
		
		
	Update for Go 1.24 (#7226)
* Update for Go 1.24 * Update Go build to 1.24.1. * Update minimum Go version to 1.23.0. * Bump golangci-lint version. Signed-off-by: SuperQ <superq@gmail.com> * Workaround confused golangci-lint error. Signed-off-by: SuperQ <superq@gmail.com> --------- Signed-off-by: SuperQ <superq@gmail.com>
This commit is contained in:
		
							
								
								
									
										2
									
								
								.github/workflows/golangci-lint.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/golangci-lint.yml
									
									
									
									
										vendored
									
									
								
							| @@ -15,4 +15,4 @@ jobs: | ||||
|       - name: golangci-lint | ||||
|         uses: golangci/golangci-lint-action@55c2c1448f86e01eaae002a5a3a9624417608d84  # v6.5.2 | ||||
|         with: | ||||
|           version: v1.62.0 | ||||
|           version: v1.64.8 | ||||
|   | ||||
| @@ -1 +1 @@ | ||||
| 1.23.3 | ||||
| 1.24.1 | ||||
|   | ||||
							
								
								
									
										2
									
								
								go.mod
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								go.mod
									
									
									
									
									
								
							| @@ -2,8 +2,6 @@ module github.com/coredns/coredns | ||||
|  | ||||
| go 1.23.0 | ||||
|  | ||||
| toolchain go1.24.1 | ||||
|  | ||||
| require ( | ||||
| 	github.com/Azure/azure-sdk-for-go v68.0.0+incompatible | ||||
| 	github.com/Azure/go-autorest/autorest v0.11.30 | ||||
|   | ||||
| @@ -129,11 +129,12 @@ func TestDefaultProcessorWithPod(t *testing.T) { | ||||
| } | ||||
|  | ||||
| func testProcessorWithPod(t *testing.T, processor cache.ProcessFunc, idx cache.Indexer) { | ||||
| 	container := api.Container{} | ||||
| 	obj := &api.Pod{ | ||||
| 		ObjectMeta: metav1.ObjectMeta{Name: "pod1", Namespace: "test1"}, | ||||
| 		Spec: api.PodSpec{ | ||||
| 			Containers: []api.Container{ | ||||
| 				api.Container{}, | ||||
| 				container, | ||||
| 			}, | ||||
| 		}, | ||||
| 	} | ||||
| @@ -141,7 +142,7 @@ func testProcessorWithPod(t *testing.T, processor cache.ProcessFunc, idx cache.I | ||||
| 		ObjectMeta: metav1.ObjectMeta{Name: "pod1", Namespace: "test1", DeletionTimestamp: &metav1.Time{Time: time.Now()}}, | ||||
| 		Spec: api.PodSpec{ | ||||
| 			Containers: []api.Container{ | ||||
| 				api.Container{}, | ||||
| 				container, | ||||
| 			}, | ||||
| 		}, | ||||
| 	} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user