Skip to content

Commit 2aa9459

Browse files
authored
Merge pull request #3076 from alvaroaleman/bump-ling
🌱Bump golangci-lint to v1.63.4
2 parents aafb269 + a2fe224 commit 2aa9459

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

.github/workflows/golangci-lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@ jobs:
3434
- name: golangci-lint
3535
uses: golangci/golangci-lint-action@971e284b6050e8a5849b72094c50ab08da042db8 # tag=v6.1.1
3636
with:
37-
version: v1.61.0
37+
version: v1.63.4
3838
args: --out-format=colored-line-number
3939
working-directory: ${{matrix.working-directory}}

.golangci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ issues:
171171
- unused
172172
# Seems to incorrectly trigger on the two implementations that are only
173173
# used through an interface and not directly..?
174+
# Likely same issue as https://github.com/dominikh/go-tools/issues/1616
174175
path: pkg/controller/priorityqueue/metrics\.go
175176

176177
run:

pkg/client/fake/client.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1050,32 +1050,32 @@ func dryPatch(action testing.PatchActionImpl, tracker testing.ObjectTracker) (ru
10501050
}
10511051

10521052
// copyStatusFrom copies the status from old into new
1053-
func copyStatusFrom(old, new runtime.Object) error {
1053+
func copyStatusFrom(old, n runtime.Object) error {
10541054
oldMapStringAny, err := toMapStringAny(old)
10551055
if err != nil {
10561056
return fmt.Errorf("failed to convert old to *unstructured.Unstructured: %w", err)
10571057
}
1058-
newMapStringAny, err := toMapStringAny(new)
1058+
newMapStringAny, err := toMapStringAny(n)
10591059
if err != nil {
10601060
return fmt.Errorf("failed to convert new to *unststructured.Unstructured: %w", err)
10611061
}
10621062

10631063
newMapStringAny["status"] = oldMapStringAny["status"]
10641064

1065-
if err := fromMapStringAny(newMapStringAny, new); err != nil {
1065+
if err := fromMapStringAny(newMapStringAny, n); err != nil {
10661066
return fmt.Errorf("failed to convert back from map[string]any: %w", err)
10671067
}
10681068

10691069
return nil
10701070
}
10711071

10721072
// copyFrom copies from old into new
1073-
func copyFrom(old, new runtime.Object) error {
1073+
func copyFrom(old, n runtime.Object) error {
10741074
oldMapStringAny, err := toMapStringAny(old)
10751075
if err != nil {
10761076
return fmt.Errorf("failed to convert old to *unstructured.Unstructured: %w", err)
10771077
}
1078-
if err := fromMapStringAny(oldMapStringAny, new); err != nil {
1078+
if err := fromMapStringAny(oldMapStringAny, n); err != nil {
10791079
return fmt.Errorf("failed to convert back from map[string]any: %w", err)
10801080
}
10811081

0 commit comments

Comments
 (0)