Skip to content

Commit

Permalink
Merge pull request #70 from actions/h2floh/update_go_version_and_linters
Browse files Browse the repository at this point in the history
Update go version and linters
  • Loading branch information
Florian Wagner committed Mar 17, 2023
2 parents da4549e + 095836f commit 6285f4e
Show file tree
Hide file tree
Showing 26 changed files with 65 additions and 670 deletions.
16 changes: 9 additions & 7 deletions .golangci.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
linters:
disable-all: true
enable:
- deadcode
- gocyclo
- golint
- revive
- gofmt
- goimports
- varcheck
- structcheck
- unused
- errcheck
- ineffassign
- interfacer
- unconvert
- goconst
- megacheck
Expand All @@ -23,5 +20,10 @@ run:
- ".*_test\\.go$"
modules-download-mode: vendor
issues:
exclude:
- ".*returns unexported type.*"
exclude-rules:
- path: test/github.go
text: "var-declaration: should omit type string from declaration of var authenticatedLogin; it will be inferred from the right-hand side"
- path: test/github.go
text: "var-declaration: should drop = \"\" from declaration of var errString; it is the zero value"
- path: src/push.go
text: "error-strings: error strings should not be capitalized or end with punctuation or a newline"
2 changes: 1 addition & 1 deletion Dockerfile.cibuild
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.16
FROM golang:1.17

ENV GO111MODULE=on
WORKDIR /go/src/github.com/actions/actions-sync
Expand Down
33 changes: 25 additions & 8 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,24 +1,41 @@
module github.com/actions/actions-sync

go 1.14
go 1.17

require (
github.com/Microsoft/go-winio v0.5.2 // indirect
github.com/ProtonMail/go-crypto v0.0.0-20220407094043-a94812496cf5 // indirect
github.com/emirpasic/gods v1.18.1 // indirect
github.com/go-git/go-git/v5 v5.4.2
github.com/golang/protobuf v1.5.2 // indirect
github.com/google/go-github/v43 v43.0.0
github.com/gorilla/mux v1.7.4
github.com/kevinburke/ssh_config v1.2.0 // indirect
github.com/pkg/errors v0.9.1
github.com/sergi/go-diff v1.2.0 // indirect
github.com/spf13/cobra v1.4.0
github.com/stretchr/testify v1.7.0
golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5
)

require (
github.com/Microsoft/go-winio v0.5.2 // indirect
github.com/ProtonMail/go-crypto v0.0.0-20220407094043-a94812496cf5 // indirect
github.com/acomagu/bufpipe v1.0.3 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/emirpasic/gods v1.18.1 // indirect
github.com/go-git/gcfg v1.5.0 // indirect
github.com/go-git/go-billy/v5 v5.3.1 // indirect
github.com/golang/protobuf v1.5.2 // indirect
github.com/google/go-querystring v1.1.0 // indirect
github.com/imdario/mergo v0.3.12 // indirect
github.com/inconshreveable/mousetrap v1.0.0 // indirect
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect
github.com/kevinburke/ssh_config v1.2.0 // indirect
github.com/mitchellh/go-homedir v1.1.0 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/sergi/go-diff v1.2.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/xanzy/ssh-agent v0.3.1 // indirect
golang.org/x/crypto v0.0.0-20220411220226-7b82a4e95df4 // indirect
golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4 // indirect
golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5
golang.org/x/sys v0.0.0-20220422013727-9388b58f7150 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/protobuf v1.28.0 // indirect
gopkg.in/warnings.v0 v0.1.2 // indirect
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c // indirect
)
1 change: 0 additions & 1 deletion go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymF
github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98=
github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c=
github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568 h1:BHsljHzVlRcyQhjrss6TZTdY2VfCqZPbv5k3iBFa2ZQ=
github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568/go.mod h1:xEzjJPgXI435gkrCt3MPfRiAkVrwSbHsst4LCFVfpJc=
github.com/gliderlabs/ssh v0.2.2 h1:6zsha5zo/TWhRhwqCD3+EarCAgZ2yN28ipRnGPnwkI0=
github.com/gliderlabs/ssh v0.2.2/go.mod h1:U7qILu1NlMHj9FlMhZLlkCdDnU1DBEAqr0aevW3Awn0=
Expand Down
8 changes: 0 additions & 8 deletions vendor/github.com/Microsoft/go-winio/go.mod

This file was deleted.

11 changes: 0 additions & 11 deletions vendor/github.com/Microsoft/go-winio/go.sum

This file was deleted.

5 changes: 0 additions & 5 deletions vendor/github.com/acomagu/bufpipe/go.mod

This file was deleted.

2 changes: 0 additions & 2 deletions vendor/github.com/acomagu/bufpipe/go.sum

This file was deleted.

10 changes: 0 additions & 10 deletions vendor/github.com/go-git/go-billy/v5/go.mod

This file was deleted.

14 changes: 0 additions & 14 deletions vendor/github.com/go-git/go-billy/v5/go.sum

This file was deleted.

31 changes: 0 additions & 31 deletions vendor/github.com/go-git/go-git/v5/go.mod

This file was deleted.

103 changes: 0 additions & 103 deletions vendor/github.com/go-git/go-git/v5/go.sum

This file was deleted.

3 changes: 0 additions & 3 deletions vendor/github.com/gorilla/mux/go.mod

This file was deleted.

5 changes: 0 additions & 5 deletions vendor/github.com/imdario/mergo/go.mod

This file was deleted.

4 changes: 0 additions & 4 deletions vendor/github.com/imdario/mergo/go.sum

This file was deleted.

1 change: 0 additions & 1 deletion vendor/github.com/mitchellh/go-homedir/go.mod

This file was deleted.

10 changes: 0 additions & 10 deletions vendor/github.com/spf13/cobra/go.mod

This file was deleted.

0 comments on commit 6285f4e

Please sign in to comment.