Skip to content

Commit 6285f4e

Browse files
author
Florian Wagner
authored
Merge pull request #70 from actions/h2floh/update_go_version_and_linters
Update go version and linters
2 parents da4549e + 095836f commit 6285f4e

File tree

26 files changed

+65
-670
lines changed

26 files changed

+65
-670
lines changed

.golangci.yaml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
11
linters:
22
disable-all: true
33
enable:
4-
- deadcode
54
- gocyclo
6-
- golint
5+
- revive
76
- gofmt
87
- goimports
9-
- varcheck
10-
- structcheck
8+
- unused
119
- errcheck
1210
- ineffassign
13-
- interfacer
1411
- unconvert
1512
- goconst
1613
- megacheck
@@ -23,5 +20,10 @@ run:
2320
- ".*_test\\.go$"
2421
modules-download-mode: vendor
2522
issues:
26-
exclude:
27-
- ".*returns unexported type.*"
23+
exclude-rules:
24+
- path: test/github.go
25+
text: "var-declaration: should omit type string from declaration of var authenticatedLogin; it will be inferred from the right-hand side"
26+
- path: test/github.go
27+
text: "var-declaration: should drop = \"\" from declaration of var errString; it is the zero value"
28+
- path: src/push.go
29+
text: "error-strings: error strings should not be capitalized or end with punctuation or a newline"

Dockerfile.cibuild

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.16
1+
FROM golang:1.17
22

33
ENV GO111MODULE=on
44
WORKDIR /go/src/github.com/actions/actions-sync

go.mod

Lines changed: 25 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,41 @@
11
module github.com/actions/actions-sync
22

3-
go 1.14
3+
go 1.17
44

55
require (
6-
github.com/Microsoft/go-winio v0.5.2 // indirect
7-
github.com/ProtonMail/go-crypto v0.0.0-20220407094043-a94812496cf5 // indirect
8-
github.com/emirpasic/gods v1.18.1 // indirect
96
github.com/go-git/go-git/v5 v5.4.2
10-
github.com/golang/protobuf v1.5.2 // indirect
117
github.com/google/go-github/v43 v43.0.0
128
github.com/gorilla/mux v1.7.4
13-
github.com/kevinburke/ssh_config v1.2.0 // indirect
149
github.com/pkg/errors v0.9.1
15-
github.com/sergi/go-diff v1.2.0 // indirect
1610
github.com/spf13/cobra v1.4.0
1711
github.com/stretchr/testify v1.7.0
12+
golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5
13+
)
14+
15+
require (
16+
github.com/Microsoft/go-winio v0.5.2 // indirect
17+
github.com/ProtonMail/go-crypto v0.0.0-20220407094043-a94812496cf5 // indirect
18+
github.com/acomagu/bufpipe v1.0.3 // indirect
19+
github.com/davecgh/go-spew v1.1.1 // indirect
20+
github.com/emirpasic/gods v1.18.1 // indirect
21+
github.com/go-git/gcfg v1.5.0 // indirect
22+
github.com/go-git/go-billy/v5 v5.3.1 // indirect
23+
github.com/golang/protobuf v1.5.2 // indirect
24+
github.com/google/go-querystring v1.1.0 // indirect
25+
github.com/imdario/mergo v0.3.12 // indirect
26+
github.com/inconshreveable/mousetrap v1.0.0 // indirect
27+
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect
28+
github.com/kevinburke/ssh_config v1.2.0 // indirect
29+
github.com/mitchellh/go-homedir v1.1.0 // indirect
30+
github.com/pmezard/go-difflib v1.0.0 // indirect
31+
github.com/sergi/go-diff v1.2.0 // indirect
32+
github.com/spf13/pflag v1.0.5 // indirect
1833
github.com/xanzy/ssh-agent v0.3.1 // indirect
1934
golang.org/x/crypto v0.0.0-20220411220226-7b82a4e95df4 // indirect
2035
golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4 // indirect
21-
golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5
2236
golang.org/x/sys v0.0.0-20220422013727-9388b58f7150 // indirect
37+
google.golang.org/appengine v1.6.7 // indirect
2338
google.golang.org/protobuf v1.28.0 // indirect
39+
gopkg.in/warnings.v0 v0.1.2 // indirect
40+
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c // indirect
2441
)

go.sum

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymF
6666
github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
6767
github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98=
6868
github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c=
69-
github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568 h1:BHsljHzVlRcyQhjrss6TZTdY2VfCqZPbv5k3iBFa2ZQ=
7069
github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568/go.mod h1:xEzjJPgXI435gkrCt3MPfRiAkVrwSbHsst4LCFVfpJc=
7170
github.com/gliderlabs/ssh v0.2.2 h1:6zsha5zo/TWhRhwqCD3+EarCAgZ2yN28ipRnGPnwkI0=
7271
github.com/gliderlabs/ssh v0.2.2/go.mod h1:U7qILu1NlMHj9FlMhZLlkCdDnU1DBEAqr0aevW3Awn0=

vendor/github.com/Microsoft/go-winio/go.mod

Lines changed: 0 additions & 8 deletions
This file was deleted.

vendor/github.com/Microsoft/go-winio/go.sum

Lines changed: 0 additions & 11 deletions
This file was deleted.

vendor/github.com/acomagu/bufpipe/go.mod

Lines changed: 0 additions & 5 deletions
This file was deleted.

vendor/github.com/acomagu/bufpipe/go.sum

Lines changed: 0 additions & 2 deletions
This file was deleted.

vendor/github.com/go-git/go-billy/v5/go.mod

Lines changed: 0 additions & 10 deletions
This file was deleted.

vendor/github.com/go-git/go-billy/v5/go.sum

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)