Skip to content

Commit

Permalink
[Upgrade] Go1.18 to 1.21 version upgrade (ContainerSSH#566)
Browse files Browse the repository at this point in the history
* Bump golang.org/x/crypto from 0.14.0 to 0.17.0 (ContainerSSH#552)

Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.14.0 to 0.17.0.
- [Commits](golang/crypto@v0.14.0...v0.17.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* [Update] go.mod, go.sum file

just update go version 1.21 and depandency update

except github.com/docker/docker v20.10.18+incompatible

because docker part used struct dockerV20Exec -> only docker v20

Signed-off-by: HyoBin Kim <[email protected]>

* [Fixed] go version 1.21 dependency fix

ioutil -> io
error message first character uppercase used -> lowercase
struct oidcDiscoverImpl felid httpClient unused -> commenting
go.containerssh.io/libcontainerssh/internal/ssh double import -> remove

Signed-off-by: HyoBin Kim <[email protected]>

* Update pipeline.yml

workflow go version 1.18 -> 1.21

Signed-off-by: okestro-hbkim <[email protected]>

* [Fixed] go version 1.21 dependency fix 2

departed func

math/rand -> crypto/rand
k.exec.Stream(option) -> k.exec.StreamWithContext(ctx, option)

Signed-off-by: HyoBin Kim <[email protected]>

* Update oidc.go

ioutil -> io

Signed-off-by: okestro-hbkim <[email protected]>

* Update pipeline.yml

go action pipeline goversion upgrade 1.18 -> 1.21

Signed-off-by: okestro-hbkim <[email protected]>

* [tmp] codecov disable

no use codecov (CODECOV_TOKEN empty)

Signed-off-by: HyoBin Kim <[email protected]>

* [tmp] git action version update

action update test

Signed-off-by: HyoBin Kim <[email protected]>

* [fix] github action cache v3 -> v2

test fail

Signed-off-by: HyoBin Kim <[email protected]>

* [fix] github action setup-go v5 -> v3

test fail

Signed-off-by: HyoBin Kim <[email protected]>

* Update pipeline.yml

codecov-action reactivate

Signed-off-by: okestro-hbkim <[email protected]>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: HyoBin Kim <[email protected]>
Signed-off-by: okestro-hbkim <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
Kim-Hyo-Bin and dependabot[bot] authored Mar 4, 2024
1 parent 2e330b6 commit 2b50b03
Show file tree
Hide file tree
Showing 9 changed files with 227 additions and 1,004 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ jobs:
if: ${{ github.event_name != 'schedule' }}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.18
go-version: 1.21
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@v4
test:
name: go test
if: ${{ github.event_name != 'schedule' }}
Expand All @@ -32,13 +32,13 @@ jobs:
}' | sudo tee /etc/docker/daemon.json
sudo service docker restart
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: true
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.18
go-version: 1.21
- name: Install KinD
run: |
sudo curl -Lo /usr/local/bin/kind https://kind.sigs.k8s.io/dl/v0.11.1/kind-linux-amd64
Expand Down Expand Up @@ -94,7 +94,7 @@ jobs:
set -euo pipefail
cat /tmp/gotest.log | gotestfmt
- name: Upload test log
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: always()
with:
name: test-log
Expand All @@ -103,4 +103,4 @@ jobs:
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
109 changes: 60 additions & 49 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,88 +1,99 @@
module go.containerssh.io/libcontainerssh

go 1.18
go 1.21

require (
github.com/aws/aws-sdk-go v1.44.316
github.com/aws/aws-sdk-go v1.50.20
github.com/containerssh/gokrb5/v8 v8.4.3-0.20211214150832-4bf8b91123af
github.com/creasty/defaults v1.5.2
github.com/creasty/defaults v1.7.0
github.com/docker/distribution v2.8.2+incompatible
github.com/docker/docker v20.10.18+incompatible
github.com/docker/go-connections v0.4.0
github.com/docker/go-connections v0.5.0
github.com/fxamacker/cbor v1.5.1
github.com/fxamacker/cbor/v2 v2.5.0
github.com/google/go-cmp v0.5.6
github.com/fxamacker/cbor/v2 v2.6.0
github.com/google/go-cmp v0.6.0
github.com/google/uuid v1.6.0
github.com/gorilla/schema v1.2.0
github.com/imdario/mergo v0.3.13
github.com/gorilla/schema v1.2.1
github.com/imdario/mergo v0.3.16
github.com/mattn/go-shellwords v1.0.12
github.com/mitchellh/mapstructure v1.4.3
github.com/opencontainers/image-spec v1.0.2
github.com/oschwald/geoip2-golang v1.5.0
github.com/mitchellh/mapstructure v1.5.0
github.com/opencontainers/image-spec v1.1.0
github.com/oschwald/geoip2-golang v1.9.0
github.com/qdm12/reprint v0.0.0-20200326205758-722754a53494
github.com/stretchr/testify v1.7.0
golang.org/x/crypto v0.17.0
golang.org/x/sys v0.15.0
github.com/stretchr/testify v1.8.4
golang.org/x/crypto v0.19.0
golang.org/x/sys v0.17.0
gopkg.in/jcmturner/goidentity.v3 v3.0.0
gopkg.in/yaml.v3 v3.0.1
k8s.io/api v0.23.0
k8s.io/apimachinery v0.23.0
k8s.io/client-go v0.23.0
sigs.k8s.io/kind v0.11.1
sigs.k8s.io/yaml v1.3.0
k8s.io/api v0.29.2
k8s.io/apimachinery v0.29.2
k8s.io/client-go v0.29.2
sigs.k8s.io/kind v0.22.0
sigs.k8s.io/yaml v1.4.0
)

require (
github.com/BurntSushi/toml v0.3.1 // indirect
github.com/Microsoft/go-winio v0.5.1 // indirect
github.com/alessio/shellescape v1.4.1 // indirect
github.com/BurntSushi/toml v1.3.2 // indirect
github.com/Microsoft/go-winio v0.6.1 // indirect
github.com/alessio/shellescape v1.4.2 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/docker/go-units v0.4.0 // indirect
github.com/evanphx/json-patch/v5 v5.2.0 // indirect
github.com/go-logr/logr v1.2.0 // indirect
github.com/docker/go-units v0.5.0 // indirect
github.com/emicklei/go-restful/v3 v3.11.2 // indirect
github.com/evanphx/json-patch/v5 v5.9.0 // indirect
github.com/go-logr/logr v1.4.1 // indirect
github.com/go-openapi/jsonpointer v0.20.2 // indirect
github.com/go-openapi/jsonreference v0.20.4 // indirect
github.com/go-openapi/swag v0.22.9 // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang/protobuf v1.5.2 // indirect
github.com/google/gofuzz v1.1.0 // indirect
github.com/googleapis/gnostic v0.5.5 // indirect
github.com/hashicorp/go-uuid v1.0.2 // indirect
github.com/inconshreveable/mousetrap v1.0.0 // indirect
github.com/golang/protobuf v1.5.3 // indirect
github.com/google/gnostic-models v0.6.8 // indirect
github.com/google/gofuzz v1.2.0 // indirect
github.com/google/safetext v0.0.0-20240104143208-7a7d9b3d812f // indirect
github.com/gorilla/websocket v1.5.1 // indirect
github.com/hashicorp/go-uuid v1.0.3 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/jcmturner/aescts/v2 v2.0.0 // indirect
github.com/jcmturner/dnsutils/v2 v2.0.0 // indirect
github.com/jcmturner/gofork v1.0.0 // indirect
github.com/jcmturner/gofork v1.7.6 // indirect
github.com/jcmturner/goidentity/v6 v6.0.1 // indirect
github.com/jcmturner/rpc/v2 v2.0.3 // indirect
github.com/jmespath/go-jmespath v0.4.0 // indirect
github.com/josharian/intern v1.0.0 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/mattn/go-isatty v0.0.14 // indirect
github.com/mailru/easyjson v0.7.7 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/moby/spdystream v0.2.0 // indirect
github.com/moby/term v0.0.0-20200312100748-672ec06f55cd // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.2 // indirect
github.com/morikuni/aec v1.0.0 // indirect
github.com/onsi/gomega v1.10.3 // indirect
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f // indirect
github.com/opencontainers/go-digest v1.0.0 // indirect
github.com/oschwald/maxminddb-golang v1.8.0 // indirect
github.com/pelletier/go-toml v1.9.4 // indirect
github.com/oschwald/maxminddb-golang v1.12.0 // indirect
github.com/pborman/uuid v1.2.1 // indirect
github.com/pelletier/go-toml v1.9.5 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/sirupsen/logrus v1.8.1 // indirect
github.com/spf13/cobra v1.3.0 // indirect
github.com/sirupsen/logrus v1.9.3 // indirect
github.com/spf13/cobra v1.8.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/x448/float16 v0.8.4 // indirect
golang.org/x/net v0.17.0 // indirect
golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8 // indirect
golang.org/x/term v0.15.0 // indirect
golang.org/x/mod v0.15.0 // indirect
golang.org/x/net v0.21.0 // indirect
golang.org/x/oauth2 v0.17.0 // indirect
golang.org/x/term v0.17.0 // indirect
golang.org/x/text v0.14.0 // indirect
golang.org/x/time v0.0.0-20210723032227-1f47c861a9ac // indirect
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/protobuf v1.27.1 // indirect
golang.org/x/time v0.5.0 // indirect
golang.org/x/tools v0.18.0 // indirect
google.golang.org/appengine v1.6.8 // indirect
google.golang.org/protobuf v1.32.0 // indirect
gopkg.in/inf.v0 v0.9.1 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gotest.tools/v3 v3.0.3 // indirect
k8s.io/klog/v2 v2.30.0 // indirect
k8s.io/kube-openapi v0.0.0-20211115234752-e816edb12b65 // indirect
k8s.io/utils v0.0.0-20210930125809-cb0fa318a74b // indirect
sigs.k8s.io/json v0.0.0-20211020170558-c049b76a60c6 // indirect
sigs.k8s.io/structured-merge-diff/v4 v4.1.2 // indirect
k8s.io/klog/v2 v2.120.1 // indirect
k8s.io/kube-openapi v0.0.0-20240209001042-7a0d5b415232 // indirect
k8s.io/utils v0.0.0-20240102154912-e7106e64919e // indirect
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect
sigs.k8s.io/structured-merge-diff/v4 v4.4.1 // indirect
)
Loading

0 comments on commit 2b50b03

Please sign in to comment.