Skip to content

Commit 4e0d689

Browse files
authored
Merge pull request #3370 from kolyshkin/bump-gofumpt
ci: bump golangci-lint to v1.44, golangci-lint-action to v3
2 parents ec9e81b + f7637de commit 4e0d689

File tree

4 files changed

+15
-16
lines changed

4 files changed

+15
-16
lines changed

.github/workflows/validate.yml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,25 @@ on:
77
- master
88
- release-*
99
pull_request:
10+
env:
11+
GO_VERSION: 1.17.x
1012

1113
jobs:
1214

1315
lint:
1416
runs-on: ubuntu-20.04
1517
steps:
1618
- uses: actions/checkout@v3
19+
- uses: actions/setup-go@v2
20+
with:
21+
go-version: "${{ env.GO_VERSION }}"
1722
- name: install deps
1823
run: |
1924
sudo apt -q update
2025
sudo apt -q install libseccomp-dev
21-
- uses: golangci/golangci-lint-action@v2
26+
- uses: golangci/golangci-lint-action@v3
2227
with:
23-
# must be specified without patch version
24-
version: v1.42
28+
version: v1.44
2529

2630
lint-extra:
2731
# Extra linters, only checking new code from pull requests.
@@ -31,16 +35,18 @@ jobs:
3135
contents: read
3236
steps:
3337
- uses: actions/checkout@v3
38+
- uses: actions/setup-go@v2
39+
with:
40+
go-version: "${{ env.GO_VERSION }}"
3441
- name: install deps
3542
run: |
3643
sudo apt -q update
3744
sudo apt -q install libseccomp-dev
38-
- uses: golangci/golangci-lint-action@v2
45+
- uses: golangci/golangci-lint-action@v3
3946
with:
4047
only-new-issues: true
4148
args: --config .golangci-extra.yml
42-
# must be specified without patch version
43-
version: v1.43
49+
version: v1.44
4450

4551

4652
compile-buildtags:
@@ -53,7 +59,7 @@ jobs:
5359
- name: install go
5460
uses: actions/setup-go@v2
5561
with:
56-
go-version: 1.x # Latest stable
62+
go-version: "${{ env.GO_VERSION }}"
5763
- name: compile with no build tags
5864
run: make BUILDTAGS=""
5965

@@ -120,7 +126,7 @@ jobs:
120126
- name: install go
121127
uses: actions/setup-go@v2
122128
with:
123-
go-version: 1.x # Latest stable
129+
go-version: "${{ env.GO_VERSION }}"
124130
- name: cache go mod and $GOCACHE
125131
uses: actions/cache@v2
126132
with:

libcontainer/cgroups/ebpf/devicefilter/devicefilter_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,7 @@ func TestDeviceFilter_Privileged(t *testing.T) {
153153
Allow: true,
154154
},
155155
}
156-
expected :=
157-
`
156+
expected := `
158157
// load parameters into registers
159158
0: LdXMemW dst: r2 src: r1 off: 0 imm: 0
160159
1: And32Imm dst: r2 imm: 65535

libcontainer/process_linux.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,9 @@ type parentProcess interface {
3939

4040
// startTime returns the process start time.
4141
startTime() (uint64, error)
42-
4342
signal(os.Signal) error
44-
4543
externalDescriptors() []string
46-
4744
setExternalDescriptors(fds []string)
48-
4945
forwardChildLogs() chan error
5046
}
5147

update.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,6 @@ other options are ignored.
194194
opt string
195195
dest *uint64
196196
}{
197-
198197
{"cpu-period", r.CPU.Period},
199198
{"cpu-rt-period", r.CPU.RealtimePeriod},
200199
{"cpu-share", r.CPU.Shares},
@@ -211,7 +210,6 @@ other options are ignored.
211210
opt string
212211
dest *int64
213212
}{
214-
215213
{"cpu-quota", r.CPU.Quota},
216214
{"cpu-rt-runtime", r.CPU.RealtimeRuntime},
217215
} {

0 commit comments

Comments
 (0)