Skip to content

Commit bb63d47

Browse files
authored
Merge pull request #355 from crossplane/renovate/golangci-golangci-lint-2.x
Update dependency golangci/golangci-lint to v2.13.0
2 parents acc07df + d918e0d commit bb63d47

4 files changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111
env:
1212
# Common versions
1313
GO_VERSION: '1.26.6'
14-
GOLANGCI_VERSION: 'v2.12.2'
14+
GOLANGCI_VERSION: 'v2.13.0'
1515

1616
jobs:
1717
check-diff:

.golangci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ linters:
6060
# useful in theory to catch fields that are accidentally omitted. Seems like
6161
# it would have many more false positives than useful catches, though.
6262
- exhaustruct
63+
- exhaustruct_v5
6364

6465
# Warns about TODO comments. The rationale being they should be issues
6566
# instead. We're okay with using TODO to track minor cleanups for next time

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ GO_TEST_PARALLEL := $(shell echo $$(( $(NPROCS) / 2 )))
2626
GO_LDFLAGS += -X $(GO_PROJECT)/pkg/version.Version=$(VERSION)
2727
GO_SUBDIRS += errors proto resource response request
2828
GO111MODULE = on
29-
GOLANGCILINT_VERSION = 2.12.2
29+
GOLANGCILINT_VERSION = 2.13.0
3030
GO_LINT_ARGS ?= "--fix"
3131
-include build/makelib/golang.mk
3232

request/request_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ func TestGetExtraResources(t *testing.T) {
419419
"ExtraResources": {
420420
reason: "If the request has extra resources in the deprecated field we should return them.",
421421
req: &v1.RunFunctionRequest{
422-
ExtraResources: map[string]*v1.Resources{
422+
ExtraResources: map[string]*v1.Resources{ //nolint:staticcheck // preserve backwards compatibility
423423
"test-resources": {
424424
Items: []*v1.Resource{
425425
{

0 commit comments

Comments
 (0)