Skip to content

Commit a2f8fbd

Browse files
authored
Merge pull request #139 from fluxcd/bump-go-andlogr-version
upgrade to go v1.17 and logr v1.2
2 parents 0e29201 + 9592647 commit a2f8fbd

File tree

6 files changed

+44
-11
lines changed

6 files changed

+44
-11
lines changed

.github/workflows/build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Setup Go
2323
uses: actions/setup-go@v2
2424
with:
25-
go-version: 1.16.x
25+
go-version: 1.17.x
2626
- name: Run vet
2727
run: make tidy fmt vet
2828
- name: Check if working tree is dirty

.github/workflows/e2e.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Setup Go
2323
uses: actions/setup-go@v2
2424
with:
25-
go-version: 1.16.x
25+
go-version: 1.17.x
2626
- name: Run tests
2727
run: |
2828
[ -n "${{ secrets.GITLAB_TOKEN }}" ] && export GITLAB_TOKEN=${{ secrets.GITLAB_TOKEN }} || echo "using default GITLAB_TOKEN"

.github/workflows/goreleaser.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Set up Go
1717
uses: actions/setup-go@v2
1818
with:
19-
go-version: 1.16
19+
go-version: 1.17
2020
- name: Download release notes utility
2121
env:
2222
GH_REL_URL: https://github.com/buchanae/github-release-notes/releases/download/0.2.0/github-release-notes-linux-amd64-0.2.0.tar.gz

go.mod

Lines changed: 36 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
module github.com/fluxcd/go-git-providers
22

3-
go 1.16
3+
go 1.17
44

55
require (
66
github.com/ProtonMail/go-crypto v0.0.0-20210428141323-04723f9f07d7
77
github.com/go-git/go-billy/v5 v5.3.1
88
github.com/go-git/go-git/v5 v5.4.2
9-
github.com/go-logr/logr v0.4.0
10-
github.com/go-logr/zapr v0.4.0
9+
github.com/go-logr/logr v1.2.2
10+
github.com/go-logr/zapr v1.2.2
1111
github.com/google/go-cmp v0.5.6
1212
github.com/google/go-github/v35 v35.3.0
1313
github.com/gregjones/httpcache v0.0.0-20190611155906-901d90724c79
@@ -24,3 +24,36 @@ require (
2424
golang.org/x/time v0.0.0-20191024005414-555d28b269f0
2525
golang.org/x/tools v0.1.5 // indirect
2626
)
27+
28+
require (
29+
github.com/Microsoft/go-winio v0.4.16 // indirect
30+
github.com/acomagu/bufpipe v1.0.3 // indirect
31+
github.com/emirpasic/gods v1.12.0 // indirect
32+
github.com/fsnotify/fsnotify v1.4.9 // indirect
33+
github.com/go-git/gcfg v1.5.0 // indirect
34+
github.com/golang/protobuf v1.4.2 // indirect
35+
github.com/google/go-querystring v1.0.0 // indirect
36+
github.com/hashicorp/errwrap v1.0.0 // indirect
37+
github.com/imdario/mergo v0.3.12 // indirect
38+
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect
39+
github.com/k0kubun/pp v2.3.0+incompatible // indirect
40+
github.com/kevinburke/ssh_config v0.0.0-20201106050909-4977a11b4351 // indirect
41+
github.com/mattn/go-colorable v0.0.9 // indirect
42+
github.com/mattn/go-isatty v0.0.3 // indirect
43+
github.com/mitchellh/go-homedir v1.1.0 // indirect
44+
github.com/mitchellh/mapstructure v0.0.0-20180220230111-00c29f56e238 // indirect
45+
github.com/nxadm/tail v1.4.4 // indirect
46+
github.com/sergi/go-diff v1.1.0 // indirect
47+
github.com/xanzy/ssh-agent v0.3.0 // indirect
48+
go.uber.org/atomic v1.7.0 // indirect
49+
go.uber.org/multierr v1.6.0 // indirect
50+
golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4 // indirect
51+
golang.org/x/sys v0.0.0-20210510120138-977fb7262007 // indirect
52+
golang.org/x/text v0.3.3 // indirect
53+
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect
54+
google.golang.org/appengine v1.4.0 // indirect
55+
google.golang.org/protobuf v1.23.0 // indirect
56+
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 // indirect
57+
gopkg.in/warnings.v0 v0.1.2 // indirect
58+
gopkg.in/yaml.v2 v2.3.0 // indirect
59+
)

go.sum

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ github.com/go-git/go-git-fixtures/v4 v4.2.1 h1:n9gGL1Ct/yIw+nfsfr8s4+sbhT+Ncu2Su
3333
github.com/go-git/go-git-fixtures/v4 v4.2.1/go.mod h1:K8zd3kDUAykwTdDCr+I0per6Y6vMiRR/nnVTBtavnB0=
3434
github.com/go-git/go-git/v5 v5.4.2 h1:BXyZu9t0VkbiHtqrsvdq39UDhGJTl1h55VW6CSC4aY4=
3535
github.com/go-git/go-git/v5 v5.4.2/go.mod h1:gQ1kArt6d+n+BGd+/B/I74HwRTLhth2+zti4ihgckDc=
36-
github.com/go-logr/logr v0.4.0 h1:K7/B1jt6fIBQVd4Owv2MqGQClcgf0R266+7C/QjRcLc=
37-
github.com/go-logr/logr v0.4.0/go.mod h1:z6/tIYblkpsD+a4lm/fGIIU9mZ+XfAiaFtq7xTgseGU=
38-
github.com/go-logr/zapr v0.4.0 h1:uc1uML3hRYL9/ZZPdgHS/n8Nzo+eaYL/Efxkkamf7OM=
39-
github.com/go-logr/zapr v0.4.0/go.mod h1:tabnROwaDl0UNxkVeFRbY8bwB37GwRv0P8lg6aAiEnk=
36+
github.com/go-logr/logr v1.2.2 h1:ahHml/yUpnlb96Rp8HCvtYVPY8ZYpxq3g7UYchIYwbs=
37+
github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A=
38+
github.com/go-logr/zapr v1.2.2 h1:5YNlIL6oZLydaV4dOFjL8YpgXF/tPeTbnpatnu3cq6o=
39+
github.com/go-logr/zapr v1.2.2/go.mod h1:eIauM6P8qSvTw5o2ez6UEAfGjQKrxQTl5EoK+Qa2oG4=
4040
github.com/golang/protobuf v1.0.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
4141
github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
4242
github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=

stash/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ func NewClient(httpClient *http.Client, host string, header *http.Header, logger
172172
return nil, errors.New("host is required")
173173
}
174174

175-
if logger == nil {
175+
if (logr.Logger{} == logger) {
176176
return nil, errors.New("logger is required")
177177
}
178178

0 commit comments

Comments
 (0)