Skip to content

Commit c970d61

Browse files
authored
Bump go to v1.17 (#922)
This commit updates the operator-registry's go version to v1.17. Signed-off-by: Alexander Greene <[email protected]>
1 parent c496cf0 commit c970d61

File tree

136 files changed

+268
-3415
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

136 files changed

+268
-3415
lines changed

.github/workflows/build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ jobs:
1515
- uses: actions/checkout@v2
1616
- uses: actions/setup-go@v2
1717
with:
18-
go-version: '~1.16'
18+
go-version: '~1.17'
1919
- run: make build

.github/workflows/go-apidiff.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Set up Go
1818
uses: actions/setup-go@v2
1919
with:
20-
go-version: '~1.16'
20+
go-version: '~1.17'
2121
id: go
2222
- name: Check out code into the Go module directory
2323
uses: actions/checkout@v2

.github/workflows/goreleaser.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
fetch-depth: 0
5656
- uses: actions/setup-go@v2
5757
with:
58-
go-version: '~1.16'
58+
go-version: '~1.17'
5959

6060
- name: "Run GoReleaser"
6161
run: make release
@@ -80,7 +80,7 @@ jobs:
8080

8181
- uses: actions/setup-go@v2
8282
with:
83-
go-version: '~1.16'
83+
go-version: '~1.17'
8484

8585
- name: "Run GoReleaser"
8686
run: make release
@@ -105,7 +105,7 @@ jobs:
105105

106106
- uses: actions/setup-go@v2
107107
with:
108-
go-version: '~1.16'
108+
go-version: '~1.17'
109109

110110
- name: "Install linux cross-compilers"
111111
run: |

.github/workflows/sanity.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- uses: actions/checkout@v2
1717
- uses: actions/setup-go@v2
1818
with:
19-
go-version: '~1.16'
19+
go-version: '~1.17'
2020
- name: Install goimports
2121
run: go install golang.org/x/tools/cmd/goimports@latest
2222
- name: Run sanity checks

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- uses: actions/checkout@v2
1515
- uses: actions/setup-go@v2
1616
with:
17-
go-version: '~1.16'
17+
go-version: '~1.17'
1818
- name: Install podman
1919
run: |
2020
. /etc/os-release

.github/workflows/unit.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- uses: actions/checkout@v2
1717
- uses: actions/setup-go@v2
1818
with:
19-
go-version: '~1.16'
19+
go-version: '~1.17'
2020
- run: make unit
2121
- run: sed -i'' "s:^github.com/$GITHUB_REPOSITORY/::" coverage.out
2222
- run: .github/workflows/codecov.sh -Z -f coverage.out

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM registry.ci.openshift.org/ocp/builder:rhel-8-golang-1.16-openshift-4.8 AS builder
1+
FROM registry.ci.openshift.org/ocp/builder:rhel-8-golang-1.17-openshift-4.8 AS builder
22

33
ENV GOPATH /go
44
ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH

codegen.Dockerfile

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

33
RUN apk update && \
44
apk add make git protobuf

go.mod

Lines changed: 114 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,19 @@
11
module github.com/operator-framework/operator-registry
22

3-
go 1.16
3+
go 1.17
44

55
require (
6-
github.com/Microsoft/hcsshim v0.8.9 // indirect
76
github.com/adrg/xdg v0.4.0
87
github.com/blang/semver/v4 v4.0.0
9-
github.com/bugsnag/bugsnag-go v1.5.3 // indirect
10-
github.com/bugsnag/panicwrap v1.2.0 // indirect
118
github.com/containerd/containerd v1.4.11
12-
github.com/containerd/continuity v0.0.0-20200413184840-d3ef23f19fbb // indirect
13-
github.com/containerd/ttrpc v1.0.1 // indirect
149
github.com/docker/cli v20.10.12+incompatible
1510
github.com/docker/distribution v2.7.1+incompatible
1611
github.com/docker/docker v1.4.2-0.20200203170920-46ec8731fbce
17-
github.com/docker/docker-credential-helpers v0.6.3 // indirect
18-
github.com/docker/go-events v0.0.0-20190806004212-e31b211e4f1c // indirect
19-
github.com/docker/go-metrics v0.0.1 // indirect
20-
github.com/docker/libtrust v0.0.0-20160708172513-aabc10ec26b7 // indirect
21-
github.com/garyburd/redigo v1.6.0 // indirect
2212
github.com/ghodss/yaml v1.0.0
23-
github.com/gofrs/uuid v3.3.0+incompatible // indirect
2413
github.com/golang-migrate/migrate/v4 v4.6.2
2514
github.com/golang/mock v1.5.0
2615
github.com/golang/protobuf v1.5.2
2716
github.com/google/go-cmp v0.5.6
28-
github.com/gorilla/handlers v1.4.2 // indirect
2917
github.com/grpc-ecosystem/grpc-health-probe v0.3.2
3018
github.com/h2non/filetype v1.1.1
3119
github.com/h2non/go-is-svg v0.0.0-20160927212452-35e8c4b0612c
@@ -44,9 +32,6 @@ require (
4432
github.com/sirupsen/logrus v1.8.1
4533
github.com/spf13/cobra v1.2.1
4634
github.com/stretchr/testify v1.7.0
47-
github.com/yvasiyarov/go-metrics v0.0.0-20150112132944-c25f46c4b940 // indirect
48-
github.com/yvasiyarov/gorelic v0.0.7 // indirect
49-
github.com/yvasiyarov/newrelic_platform_go v0.0.0-20160601141957-9c099fbc30e9 // indirect
5035
go.etcd.io/bbolt v1.3.6
5136
golang.org/x/mod v0.4.2
5237
golang.org/x/net v0.0.0-20210825183410-e898025ed96a
@@ -65,5 +50,118 @@ require (
6550
sigs.k8s.io/yaml v1.2.0
6651
)
6752

53+
require (
54+
github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1 // indirect
55+
github.com/BurntSushi/toml v0.3.1 // indirect
56+
github.com/MakeNowJust/heredoc v0.0.0-20170808103936-bb23615498cd // indirect
57+
github.com/Microsoft/go-winio v0.4.16 // indirect
58+
github.com/Microsoft/hcsshim v0.8.9 // indirect
59+
github.com/PuerkitoBio/purell v1.1.1 // indirect
60+
github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578 // indirect
61+
github.com/Shopify/logrus-bugsnag v0.0.0-20171204204709-577dee27f20d // indirect
62+
github.com/alessio/shellescape v1.4.1 // indirect
63+
github.com/antlr/antlr4/runtime/Go/antlr v0.0.0-20210826220005-b48c857c3a0e // indirect
64+
github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a // indirect
65+
github.com/beorn7/perks v1.0.1 // indirect
66+
github.com/blang/semver v3.5.1+incompatible // indirect
67+
github.com/bshuster-repo/logrus-logstash-hook v0.4.1 // indirect
68+
github.com/bugsnag/bugsnag-go v1.5.3 // indirect
69+
github.com/bugsnag/panicwrap v1.2.0 // indirect
70+
github.com/cespare/xxhash/v2 v2.1.1 // indirect
71+
github.com/containerd/cgroups v0.0.0-20190919134610-bf292b21730f // indirect
72+
github.com/containerd/continuity v0.0.0-20200413184840-d3ef23f19fbb // indirect
73+
github.com/containerd/ttrpc v1.0.1 // indirect
74+
github.com/davecgh/go-spew v1.1.1 // indirect
75+
github.com/docker/docker-credential-helpers v0.6.3 // indirect
76+
github.com/docker/go-connections v0.4.0 // indirect
77+
github.com/docker/go-events v0.0.0-20190806004212-e31b211e4f1c // indirect
78+
github.com/docker/go-metrics v0.0.1 // indirect
79+
github.com/docker/go-units v0.4.0 // indirect
80+
github.com/docker/libtrust v0.0.0-20160708172513-aabc10ec26b7 // indirect
81+
github.com/evanphx/json-patch v4.11.0+incompatible // indirect
82+
github.com/evanphx/json-patch/v5 v5.2.0 // indirect
83+
github.com/felixge/httpsnoop v1.0.1 // indirect
84+
github.com/fsnotify/fsnotify v1.4.9 // indirect
85+
github.com/garyburd/redigo v1.6.0 // indirect
86+
github.com/go-git/gcfg v1.5.0 // indirect
87+
github.com/go-git/go-billy/v5 v5.1.0 // indirect
88+
github.com/go-git/go-git/v5 v5.3.0 // indirect
89+
github.com/go-logr/logr v0.4.0 // indirect
90+
github.com/go-openapi/jsonpointer v0.19.5 // indirect
91+
github.com/go-openapi/jsonreference v0.19.5 // indirect
92+
github.com/go-openapi/swag v0.19.14 // indirect
93+
github.com/go-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0 // indirect
94+
github.com/gofrs/uuid v3.3.0+incompatible // indirect
95+
github.com/gogo/protobuf v1.3.2 // indirect
96+
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
97+
github.com/google/cel-go v0.9.0 // indirect
98+
github.com/google/gofuzz v1.1.0 // indirect
99+
github.com/googleapis/gnostic v0.5.5 // indirect
100+
github.com/gorilla/handlers v1.4.2 // indirect
101+
github.com/gorilla/mux v1.7.2 // indirect
102+
github.com/grpc-ecosystem/grpc-gateway v1.16.0 // indirect
103+
github.com/imdario/mergo v0.3.12 // indirect
104+
github.com/inconshreveable/mousetrap v1.0.0 // indirect
105+
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect
106+
github.com/josharian/intern v1.0.0 // indirect
107+
github.com/json-iterator/go v1.1.11 // indirect
108+
github.com/kardianos/osext v0.0.0-20190222173326-2bc1f35cddc0 // indirect
109+
github.com/mailru/easyjson v0.7.6 // indirect
110+
github.com/mattn/go-isatty v0.0.12 // indirect
111+
github.com/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182affec369 // indirect
112+
github.com/mitchellh/go-wordwrap v1.0.0 // indirect
113+
github.com/mitchellh/mapstructure v1.4.1 // indirect
114+
github.com/moby/spdystream v0.2.0 // indirect
115+
github.com/moby/term v0.0.0-20210610120745-9d4ed1856297 // indirect
116+
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
117+
github.com/modern-go/reflect2 v1.0.1 // indirect
118+
github.com/morikuni/aec v0.0.0-20170113033406-39771216ff4c // indirect
119+
github.com/nxadm/tail v1.4.8 // indirect
120+
github.com/pelletier/go-toml v1.9.3 // indirect
121+
github.com/pmezard/go-difflib v1.0.0 // indirect
122+
github.com/prometheus/client_golang v1.11.0 // indirect
123+
github.com/prometheus/client_model v0.2.0 // indirect
124+
github.com/prometheus/common v0.26.0 // indirect
125+
github.com/prometheus/procfs v0.6.0 // indirect
126+
github.com/russross/blackfriday v1.5.2 // indirect
127+
github.com/spf13/pflag v1.0.5 // indirect
128+
github.com/stoewer/go-strcase v1.2.0 // indirect
129+
github.com/yvasiyarov/go-metrics v0.0.0-20150112132944-c25f46c4b940 // indirect
130+
github.com/yvasiyarov/gorelic v0.0.7 // indirect
131+
github.com/yvasiyarov/newrelic_platform_go v0.0.0-20160601141957-9c099fbc30e9 // indirect
132+
go.opencensus.io v0.23.0 // indirect
133+
go.opentelemetry.io/contrib v0.20.0 // indirect
134+
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.20.0 // indirect
135+
go.opentelemetry.io/otel v0.20.0 // indirect
136+
go.opentelemetry.io/otel/exporters/otlp v0.20.0 // indirect
137+
go.opentelemetry.io/otel/metric v0.20.0 // indirect
138+
go.opentelemetry.io/otel/sdk v0.20.0 // indirect
139+
go.opentelemetry.io/otel/sdk/export/metric v0.20.0 // indirect
140+
go.opentelemetry.io/otel/sdk/metric v0.20.0 // indirect
141+
go.opentelemetry.io/otel/trace v0.20.0 // indirect
142+
go.opentelemetry.io/proto/otlp v0.7.0 // indirect
143+
golang.org/x/crypto v0.0.0-20210322153248-0c34fe9e7dc2 // indirect
144+
golang.org/x/oauth2 v0.0.0-20210402161424-2e8d93401602 // indirect
145+
golang.org/x/sys v0.0.0-20211025201205-69cdffdb9359 // indirect
146+
golang.org/x/term v0.0.0-20210220032956-6a3ed077a48d // indirect
147+
golang.org/x/text v0.3.7 // indirect
148+
golang.org/x/time v0.0.0-20210723032227-1f47c861a9ac // indirect
149+
golang.org/x/tools v0.1.5 // indirect
150+
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect
151+
google.golang.org/appengine v1.6.7 // indirect
152+
google.golang.org/genproto v0.0.0-20210831024726-fe130286e0e2 // indirect
153+
gopkg.in/inf.v0 v0.9.1 // indirect
154+
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 // indirect
155+
gopkg.in/warnings.v0 v0.1.2 // indirect
156+
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect
157+
k8s.io/apiserver v0.22.1 // indirect
158+
k8s.io/component-base v0.22.1 // indirect
159+
k8s.io/klog/v2 v2.9.0 // indirect
160+
k8s.io/kube-openapi v0.0.0-20210421082810-95288971da7e // indirect
161+
k8s.io/utils v0.0.0-20210802155522-efc7438f0176 // indirect
162+
sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.0.22 // indirect
163+
sigs.k8s.io/structured-merge-diff/v4 v4.1.2 // indirect
164+
)
165+
68166
// latest tag resolves to a very old version. this is only used for spinning up local test registries
69167
replace github.com/docker/distribution => github.com/docker/distribution v0.0.0-20191216044856-a8371794149d

pkg/image/buildahregistry/_options.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1+
//go:build ignore
12
// +build ignore
3+
24
package buildahregistry
35

46
import (

0 commit comments

Comments
 (0)