build: Update Go to v1.24.1 (#25249)

This commit is contained in:
James Rasell
2025-03-06 11:33:14 +01:00
committed by GitHub
parent 29c7b7ca44
commit 2eb35a4678
10 changed files with 13 additions and 48 deletions

View File

@@ -1,31 +0,0 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: BUSL-1.1
rules:
- id: loopclosure
patterns:
- pattern-inside: |
for $A, $B := range $C {
...
}
- pattern-inside: |
go func() {
...
}()
- pattern-not-inside: |
go func(..., $B, ...) {
...
}(..., $B, ...)
- pattern-not-inside: |
go func() {
...
for ... {
...
}
...
}()
- pattern: $B
message: Loop variable $B used inside goroutine
languages:
- go
severity: WARNING