Skip to content

Commit f17f850

Browse files
committed
Tweak golanci-lint version
1 parent 1a4f4de commit f17f850

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

.github/workflows/test.yaml

+3-7
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010

1111
jobs:
1212
test:
13-
name: Test
13+
name: test
1414
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@v4
@@ -34,16 +34,12 @@ jobs:
3434
runs-on: ubuntu-latest
3535
steps:
3636
- uses: actions/checkout@v4
37-
with:
38-
fetch-depth: 0
3937
- uses: actions/setup-go@v5
4038
with:
4139
go-version: '1.20'
4240
cache: false
4341
- name: golangci-lint
4442
uses: golangci/golangci-lint-action@v4
4543
with:
46-
# Require: The version of golangci-lint to use.
47-
# When `install-mode` is `binary` (default) the value can be v1.2 or v1.2.3 or `latest` to use the latest version.
48-
# When `install-mode` is `goinstall` the value can be v1.2.3, `latest`, or the hash of a commit.
49-
version: v1.56
44+
version: v1.53 # Works with go1.20
45+
args: -v

client/openfile_linux.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build linux
12
// +build linux
23

34
package client

library/maintenance_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ func (s *maintenanceSuite) TestRetireVideos() {
123123
context.Background(),
124124
"UPDATE videos SET accessed_at = $2 where tid = $1",
125125
stream.TID(),
126-
time.Now().AddDate(0, 0, -rand.Intn(30)), // #nosec G404
127-
)
126+
time.Now().AddDate(0, 0, -rand.Intn(30)),
127+
) // #nosec G404
128128
s.Require().NoError(err)
129129
}
130130

0 commit comments

Comments
 (0)