Skip to content

Commit

Permalink
Upgrade golangci-lint to 1.61.0
Browse files Browse the repository at this point in the history
The previous version crashed under recent versions of Go.
  • Loading branch information
jgiannuzzi committed Nov 10, 2024
1 parent 7f60212 commit 046931a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
gofumpt := mvdan.cc/[email protected]
gosimports := github.com/rinchsan/gosimports/cmd/[email protected]
golangci_lint := github.com/golangci/golangci-lint/cmd/golangci-lint@v1.53.2
golangci_lint := github.com/golangci/golangci-lint/cmd/golangci-lint@v1.61.0

examples/advanced/main.wasm: examples/advanced/main.go
@(cd $(@D); tinygo build -o main.wasm -gc=custom -tags=custommalloc -scheduler=none --no-debug -target=wasi .)
Expand Down
5 changes: 2 additions & 3 deletions scheduler/test/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package test
import (
"context"
"errors"
"fmt"

v1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/runtime"
Expand All @@ -23,9 +22,9 @@ type FakeRecorder struct {
func (f *FakeRecorder) Eventf(regarding runtime.Object, related runtime.Object, eventtype, reason, action, note string, args ...interface{}) {
obj, ok := regarding.(*v1.ObjectReference)
if !ok || obj.Name == "" {
f.EventMsg = fmt.Sprintf(eventtype + " " + reason + " " + action + " " + note)
f.EventMsg = eventtype + " " + reason + " " + action + " " + note
} else {
f.EventMsg = fmt.Sprintf(obj.Name + " " + eventtype + " " + reason + " " + action + " " + note)
f.EventMsg = obj.Name + " " + eventtype + " " + reason + " " + action + " " + note
}
}

Expand Down

0 comments on commit 046931a

Please sign in to comment.