Skip to content

Commit 1d2aa4d

Browse files
Bump golangci/golangci-lint-action from 6 to 7 (#531)
Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Andreas Fritzler <[email protected]>
1 parent 4b05957 commit 1d2aa4d

File tree

5 files changed

+42
-31
lines changed

5 files changed

+42
-31
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ jobs:
1616
go-version-file: 'go.mod'
1717
- run: sudo apt update && sudo apt install -y libcephfs-dev librbd-dev librados-dev
1818
- name: golangci-lint
19-
uses: golangci/golangci-lint-action@v6
19+
uses: golangci/golangci-lint-action@v7
2020
with:
21-
version: v1.64
21+
version: v2.0

.golangci.yaml

Lines changed: 36 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,40 @@
1-
run:
2-
timeout: 10m
3-
1+
version: "2"
42
linters:
53
enable:
6-
- revive
7-
- ineffassign
84
- misspell
9-
- goimports
10-
11-
severity:
12-
default-severity: error
13-
14-
linters-settings:
15-
misspell:
16-
ignore-words:
17-
- strat
18-
revive:
19-
severity: error
5+
- revive
6+
settings:
7+
misspell:
8+
ignore-rules:
9+
- strat
10+
revive:
11+
severity: error
12+
rules:
13+
- name: exported
14+
- name: if-return
15+
disabled: true
16+
exclusions:
17+
generated: lax
18+
presets:
19+
- comments
20+
- common-false-positives
21+
- legacy
22+
- std-error-handling
2023
rules:
21-
- name: exported
22-
- name: if-return
23-
disabled: true
24-
25-
issues:
26-
exclude:
27-
# Exclude stutter issues (for now)
28-
- "exported: type name will be used as (.+) by other packages, and that stutters; consider calling this (.+)"
24+
- path: (.+)\.go$
25+
text: 'exported: type name will be used as (.+) by other packages, and that stutters; consider calling this (.+)'
26+
paths:
27+
- third_party$
28+
- builtin$
29+
- examples$
30+
severity:
31+
default: error
32+
formatters:
33+
enable:
34+
- goimports
35+
exclusions:
36+
generated: lax
37+
paths:
38+
- third_party$
39+
- builtin$
40+
- examples$

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ ADDLICENSE ?= $(LOCALBIN)/addlicense-$(ADDLICENSE_VERSION)
163163
KUSTOMIZE_VERSION ?= v5.3.0
164164
CONTROLLER_TOOLS_VERSION ?= v0.16.0
165165
ENVTEST_VERSION ?= release-0.19
166-
GOLANGCI_LINT_VERSION ?= v1.64.6
166+
GOLANGCI_LINT_VERSION ?= v2.0
167167
ADDLICENSE_VERSION ?= v1.1.1
168168

169169
.PHONY: kustomize
@@ -180,7 +180,7 @@ envtest: $(LOCALBIN) ## Download setup-envtest locally if necessary.
180180

181181
.PHONY: golangci-lint
182182
golangci-lint: $(LOCALBIN) ## Download golangci-lint locally if necessary.
183-
$(call go-install-tool,$(GOLANGCI_LINT),github.com/golangci/golangci-lint/cmd/golangci-lint,${GOLANGCI_LINT_VERSION})
183+
$(call go-install-tool,$(GOLANGCI_LINT),github.com/golangci/golangci-lint/v2/cmd/golangci-lint,${GOLANGCI_LINT_VERSION})
184184

185185
.PHONY: clean-tools
186186
clean-tools: ## Clean any artifacts that can be regenerated.

go.mod

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
module github.com/ironcore-dev/libvirt-provider
22

3-
go 1.24
4-
toolchain go1.24.1
3+
go 1.24.0
54

65
require (
76
github.com/blang/semver/v4 v4.0.0

internal/controllers/machine_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -784,7 +784,7 @@ func (r *MachineReconciler) domainFor(
784784
}
785785

786786
func (r *MachineReconciler) setDomainMetadata(log logr.Logger, machine *api.Machine, domain *libvirtxml.Domain) error {
787-
labels, found := machine.Metadata.Annotations[api.LabelsAnnotation]
787+
labels, found := machine.Annotations[api.LabelsAnnotation]
788788
if !found {
789789
log.V(1).Info("IRI machine labels are not annotated in the API machine")
790790
return nil

0 commit comments

Comments
 (0)