Skip to content
This repository was archived by the owner on Oct 9, 2023. It is now read-only.

Commit 97772fd

Browse files
authored
Bumping go version to 1.19 (#45)
* bumping go version to 1.19 Signed-off-by: Daniel Rammer <hamersaw@protonmail.com> * updated dockerfile Signed-off-by: Daniel Rammer <hamersaw@protonmail.com> --------- Signed-off-by: Daniel Rammer <hamersaw@protonmail.com>
1 parent 378c9d2 commit 97772fd

File tree

5 files changed

+411
-382
lines changed

5 files changed

+411
-382
lines changed

.github/workflows/checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
uses: actions/checkout@v2
2929
- uses: actions/setup-go@v2
3030
with:
31-
go-version: '1.16'
31+
go-version: '1.19'
3232
- name: Run GoReleaser dry run
3333
uses: goreleaser/goreleaser-action@v2
3434
with:

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# TO OPT OUT OF UPDATES, SEE https://github.com/lyft/boilerplate/blob/master/Readme.rst
55

6-
FROM golang:1.17.1-alpine3.14 as builder
6+
FROM golang:1.18-alpine3.16 as builder
77
RUN apk add git openssh-client make curl
88

99
# COPY only the go mod files for efficient caching
@@ -24,7 +24,7 @@ RUN make linux_compile
2424
ENV PATH="/artifacts:${PATH}"
2525

2626
# This will eventually move to centurylink/ca-certs:latest for minimum possible image size
27-
FROM alpine:3.14
27+
FROM alpine:3.16
2828
LABEL org.opencontainers.image.source https://github.com/lyft/flyteplugins
2929

3030
COPY --from=builder /artifacts /bin

data/common.go

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
// This module contains Flyte CoPilot related code.
22
// Currently it only has 2 utilities - downloader and an uploader.
33
// Usage Downloader:
4-
// downloader := NewDownloader(...)
5-
// downloader.DownloadInputs(...) // will recursively download all inputs
4+
//
5+
// downloader := NewDownloader(...)
6+
// downloader.DownloadInputs(...) // will recursively download all inputs
67
//
78
// Usage uploader:
8-
// uploader := NewUploader(...)
9-
// uploader.RecursiveUpload(...) // Will recursively upload all the data from the given path depending on the output interface
9+
//
10+
// uploader := NewUploader(...)
11+
// uploader.RecursiveUpload(...) // Will recursively upload all the data from the given path depending on the output interface
12+
//
1013
// All errors are bubbled up.
1114
//
1215
// Both the uploader and downloader accept context.Context variables. These should be used to control timeouts etc.

go.mod

Lines changed: 89 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,103 @@
11
module github.com/flyteorg/flytecopilot
22

3-
go 1.13
3+
go 1.19
44

55
require (
6-
github.com/aws/aws-sdk-go v1.37.1
7-
github.com/flyteorg/flyteidl v0.22.1
8-
github.com/flyteorg/flytestdlib v0.4.7
9-
github.com/fsnotify/fsnotify v1.4.9
6+
github.com/aws/aws-sdk-go v1.44.2
7+
github.com/flyteorg/flyteidl v1.3.6
8+
github.com/flyteorg/flytestdlib v1.0.15
9+
github.com/fsnotify/fsnotify v1.5.1
1010
github.com/ghodss/yaml v1.0.0
11-
github.com/golang/protobuf v1.4.3
12-
github.com/imdario/mergo v0.3.11 // indirect
11+
github.com/golang/protobuf v1.5.2
1312
github.com/mitchellh/go-ps v1.0.0
1413
github.com/pkg/errors v0.9.1
15-
github.com/satori/go.uuid v1.2.1-0.20181016170032-d91630c85102 // indirect
16-
github.com/spf13/cobra v1.1.1
14+
github.com/spf13/cobra v1.4.0
1715
github.com/spf13/pflag v1.0.5
18-
github.com/stretchr/testify v1.7.0
16+
github.com/stretchr/testify v1.7.1
1917
k8s.io/api v0.20.4
2018
k8s.io/apimachinery v0.20.4
2119
k8s.io/client-go v0.20.4
2220
k8s.io/klog v1.0.0
21+
)
22+
23+
require (
24+
cloud.google.com/go v0.101.0 // indirect
25+
cloud.google.com/go/compute v1.6.1 // indirect
26+
cloud.google.com/go/iam v0.3.0 // indirect
27+
cloud.google.com/go/storage v1.22.0 // indirect
28+
github.com/Azure/azure-sdk-for-go v63.4.0+incompatible // indirect
29+
github.com/Azure/azure-sdk-for-go/sdk/azcore v0.23.1 // indirect
30+
github.com/Azure/azure-sdk-for-go/sdk/internal v0.9.2 // indirect
31+
github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v0.4.0 // indirect
32+
github.com/Azure/go-autorest v14.2.0+incompatible // indirect
33+
github.com/Azure/go-autorest/autorest v0.11.27 // indirect
34+
github.com/Azure/go-autorest/autorest/adal v0.9.18 // indirect
35+
github.com/Azure/go-autorest/autorest/date v0.3.0 // indirect
36+
github.com/Azure/go-autorest/logger v0.2.1 // indirect
37+
github.com/Azure/go-autorest/tracing v0.6.0 // indirect
38+
github.com/beorn7/perks v1.0.1 // indirect
39+
github.com/cespare/xxhash v1.1.0 // indirect
40+
github.com/cespare/xxhash/v2 v2.1.2 // indirect
41+
github.com/coocood/freecache v1.1.1 // indirect
42+
github.com/davecgh/go-spew v1.1.1 // indirect
43+
github.com/fatih/color v1.13.0 // indirect
44+
github.com/flyteorg/stow v0.3.6 // indirect
45+
github.com/go-logr/logr v0.4.0 // indirect
46+
github.com/gofrs/uuid v4.2.0+incompatible // indirect
47+
github.com/gogo/protobuf v1.3.2 // indirect
48+
github.com/golang-jwt/jwt/v4 v4.4.1 // indirect
49+
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
50+
github.com/google/go-cmp v0.5.8 // indirect
51+
github.com/google/gofuzz v1.1.0 // indirect
52+
github.com/googleapis/gax-go/v2 v2.3.0 // indirect
53+
github.com/googleapis/gnostic v0.4.1 // indirect
54+
github.com/googleapis/go-type-adapters v1.0.0 // indirect
55+
github.com/hashicorp/hcl v1.0.0 // indirect
56+
github.com/imdario/mergo v0.3.11 // indirect
57+
github.com/inconshreveable/mousetrap v1.0.0 // indirect
58+
github.com/jmespath/go-jmespath v0.4.0 // indirect
59+
github.com/json-iterator/go v1.1.12 // indirect
60+
github.com/magiconair/properties v1.8.6 // indirect
61+
github.com/mattn/go-colorable v0.1.12 // indirect
62+
github.com/mattn/go-isatty v0.0.14 // indirect
63+
github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect
64+
github.com/mitchellh/mapstructure v1.4.3 // indirect
65+
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
66+
github.com/modern-go/reflect2 v1.0.2 // indirect
67+
github.com/ncw/swift v1.0.53 // indirect
68+
github.com/pelletier/go-toml v1.9.4 // indirect
69+
github.com/pelletier/go-toml/v2 v2.0.0-beta.8 // indirect
70+
github.com/pmezard/go-difflib v1.0.0 // indirect
71+
github.com/prometheus/client_golang v1.12.1 // indirect
72+
github.com/prometheus/client_model v0.2.0 // indirect
73+
github.com/prometheus/common v0.32.1 // indirect
74+
github.com/prometheus/procfs v0.7.3 // indirect
75+
github.com/sirupsen/logrus v1.7.0 // indirect
76+
github.com/spf13/afero v1.8.2 // indirect
77+
github.com/spf13/cast v1.4.1 // indirect
78+
github.com/spf13/jwalterweatherman v1.1.0 // indirect
79+
github.com/spf13/viper v1.11.0 // indirect
80+
github.com/subosito/gotenv v1.2.0 // indirect
81+
go.opencensus.io v0.23.0 // indirect
82+
golang.org/x/crypto v0.0.0-20220427172511-eb4f295cb31f // indirect
83+
golang.org/x/net v0.0.0-20220722155237-a158d28d115b // indirect
84+
golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5 // indirect
85+
golang.org/x/sys v0.0.0-20220829200755-d48e67d00261 // indirect
86+
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 // indirect
87+
golang.org/x/text v0.3.7 // indirect
88+
golang.org/x/time v0.0.0-20201208040808-7e3f01d25324 // indirect
89+
golang.org/x/xerrors v0.0.0-20220411194840-2f41105eb62f // indirect
90+
google.golang.org/api v0.76.0 // indirect
91+
google.golang.org/appengine v1.6.7 // indirect
92+
google.golang.org/genproto v0.0.0-20220426171045-31bebdecfb46 // indirect
93+
google.golang.org/grpc v1.46.0 // indirect
94+
google.golang.org/protobuf v1.28.0 // indirect
95+
gopkg.in/inf.v0 v0.9.1 // indirect
96+
gopkg.in/ini.v1 v1.66.4 // indirect
97+
gopkg.in/yaml.v2 v2.4.0 // indirect
98+
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect
99+
k8s.io/klog/v2 v2.5.0 // indirect
23100
k8s.io/utils v0.0.0-20210111153108-fddb29f9d009 // indirect
101+
sigs.k8s.io/structured-merge-diff/v4 v4.0.3 // indirect
102+
sigs.k8s.io/yaml v1.2.0 // indirect
24103
)

0 commit comments

Comments
 (0)