[release-1.45] Bump lint and address lint issue

Bump lint in the test area to 1.55.2 and then address an
append that's causing lint heartache.  Also change the install
process for lint to be like the latest releases.

Signed-off-by: tomsweeneyredhat <tsweeney@redhat.com>
This commit is contained in:
tomsweeneyredhat 2024-06-27 14:49:16 -04:00
parent c799ba9ab6
commit 85b598a6c1
2 changed files with 3 additions and 6 deletions

View File

@ -744,7 +744,7 @@ func BenchmarkConcurrentAccess(b *testing.B) {
}
parent := ids[1]
ids = append(ids[2:])
ids = ids[2:]
chErr := make(chan error, numConcurrent)
var outerGroup sync.WaitGroup

View File

@ -33,9 +33,6 @@ $(BUILDDIR)/git-validation:
$(BUILDDIR)/go-md2man:
$(call go-build,./vendor/github.com/cpuguy83/go-md2man)
$(BUILDDIR)/golangci-lint: VERSION=v1.55.2
$(BUILDDIR)/golangci-lint:
export \
VERSION=v1.24.0 \
URL=https://raw.githubusercontent.com/golangci/golangci-lint \
BINDIR=$(BUILDDIR) && \
curl -sfL $$URL/$$VERSION/install.sh | sh -s $$VERSION
curl -fsSL https://raw.githubusercontent.com/golangci/golangci-lint/$(VERSION)/install.sh | sh -s -- -b ./$(BUILDDIR) $(VERSION)