CI: Bump golangci-lint to 2.0.2 (#103572)

This commit is contained in:
Mariell Hoversholm
2025-04-10 14:42:23 +02:00
committed by GitHub
parent b58b6e828e
commit 757be6365a
291 changed files with 1948 additions and 1835 deletions
+1 -1
View File
@@ -44,7 +44,7 @@ require (
github.com/yalue/merged_fs v1.3.0 // indirect
golang.org/x/mod v0.24.0 // indirect
golang.org/x/net v0.37.0 // indirect
golang.org/x/oauth2 v0.24.0 // indirect
golang.org/x/oauth2 v0.26.0 // indirect
golang.org/x/sync v0.12.0 // indirect
golang.org/x/text v0.23.0 // indirect
golang.org/x/tools v0.31.0 // indirect
+2 -2
View File
@@ -96,8 +96,8 @@ golang.org/x/mod v0.24.0 h1:ZfthKaKaT4NrhGVZHO1/WDTwGES4De8KtWO0SIbNJMU=
golang.org/x/mod v0.24.0/go.mod h1:IXM97Txy2VM4PJ3gI61r1YEk/gAj6zAHN3AdZt6S9Ww=
golang.org/x/net v0.37.0 h1:1zLorHbz+LYj7MQlSf1+2tPIIgibq2eL5xkrGk6f+2c=
golang.org/x/net v0.37.0/go.mod h1:ivrbrMbzFq5J41QOQh0siUuly180yBYtLp+CKbEaFx8=
golang.org/x/oauth2 v0.24.0 h1:KTBBxWqUa0ykRPLtV69rRto9TLXcqYkeswu48x/gvNE=
golang.org/x/oauth2 v0.24.0/go.mod h1:XYTD2NtWslqkgxebSiOHnXEap4TF09sJSc7H1sXbhtI=
golang.org/x/oauth2 v0.26.0 h1:afQXWNNaeC4nvZ0Ed9XvCCzXM6UHJG7iCg0W4fPqSBE=
golang.org/x/oauth2 v0.26.0/go.mod h1:XYTD2NtWslqkgxebSiOHnXEap4TF09sJSc7H1sXbhtI=
golang.org/x/sync v0.12.0 h1:MHc5BpPuC30uJk597Ri8TV3CNZcTLu6B6z4lJy+g6Jw=
golang.org/x/sync v0.12.0/go.mod h1:1dzgHSNfp02xaA81J2MS99Qcpr2w7fw1gpm99rleRqA=
golang.org/x/sys v0.31.0 h1:ioabZlmFYtWhL+TRYpcnNlLwhyxaM9kWTDEmfnprqik=
+2 -4
View File
@@ -149,10 +149,8 @@ func TestProcessManager_ManagedBackendPluginLifecycle(t *testing.T) {
wgKill.Add(1)
go func() {
bp.Kill() // manually kill process
for {
if !bp.Exited() {
break
}
for bp.Exited() {
}
wgKill.Done()
}()
+3 -4
View File
@@ -117,7 +117,7 @@ func TestPluginInfo(t *testing.T) {
require.Equal(t, fmt.Sprintf("/%s", pluginID), r.URL.Path)
w.WriteHeader(http.StatusOK)
w.Header().Set("Content-Type", "application/json")
_, _ = w.Write([]byte(fmt.Sprintf(`{ "id": 1, "slug": "%s", "status": "active" }`, pluginID)))
_, _ = fmt.Fprintf(w, `{ "id": 1, "slug": "%s", "status": "active" }`, pluginID)
}))
t.Cleanup(srv.Close)
@@ -190,7 +190,7 @@ func mockPluginVersionsAPI(t *testing.T, data srvData) *httptest.Server {
if data.arch != "" {
platform += "-" + data.arch
}
_, _ = w.Write([]byte(fmt.Sprintf(`
_, _ = fmt.Fprintf(w, `
{
"items": [{
"version": "%s",
@@ -203,8 +203,7 @@ func mockPluginVersionsAPI(t *testing.T, data srvData) *httptest.Server {
"isCompatible": true
}]
}
`, data.version, platform, data.sha, data.url),
))
`, data.version, platform, data.sha, data.url)
})
// mock plugin archive