Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Upgrade] Go1.18 to 1.21 version upgrade #566

Merged

Conversation

Kim-Hyo-Bin
Copy link
Contributor

#564
go lang version up 1.18 -> 1.21

some package depandency upgrade

dockerV20Exec structure exists, docker/docker(moby/moby) is skiped from the update.
(latest 25.X.X)

github action update and passed

image
image


By contributing to this repository, I agree to the contribution guidelines.

dependabot bot and others added 12 commits February 23, 2024 15:16
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>
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]>
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]>
workflow go version 1.18 -> 1.21

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

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

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

Signed-off-by: okestro-hbkim <[email protected]>
go action pipeline goversion upgrade 1.18 -> 1.21

Signed-off-by: okestro-hbkim <[email protected]>
no use codecov (CODECOV_TOKEN empty)

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

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

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

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

Signed-off-by: okestro-hbkim <[email protected]>
@Kim-Hyo-Bin Kim-Hyo-Bin changed the title Go1.18 to 1.21 upgrade [Upgrade] Go1.18 to 1.21 version upgrade Feb 23, 2024
@tsipinakis
Copy link
Member

LGTM! Thanks! Looks like there are some conflicts though, mind resolving them?

@Kim-Hyo-Bin
Copy link
Contributor Author

LGTM! Thanks! Looks like there are some conflicts though, mind resolving them?

in my case (ubuntu 22.04 - amd64), There is no conflict. tell me about the conflict.
if 'the conflicts' was go.mod, go.sum file conflicts. solved tham.

please check test in your enviroment before approve.
There could be something I missed.

Copy link

codecov bot commented Feb 28, 2024

Codecov Report

Attention: Patch coverage is 16.66667% with 5 lines in your changes are missing coverage. Please review.

❗ No coverage uploaded for pull request base (main@2e330b6). Click here to learn what that means.

Files Patch % Lines
internal/auth/kerberos_impl.go 0.00% 1 Missing and 1 partial ⚠️
internal/test/oidc.go 0.00% 2 Missing ⚠️
internal/auth/oauth2_factory.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #566   +/-   ##
=======================================
  Coverage        ?   37.33%           
=======================================
  Files           ?      196           
  Lines           ?    17196           
  Branches        ?        0           
=======================================
  Hits            ?     6420           
  Misses          ?    10186           
  Partials        ?      590           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@tsipinakis tsipinakis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now it's good. Thanks again! :)

@tsipinakis tsipinakis merged commit 2b50b03 into ContainerSSH:main Mar 4, 2024
5 checks passed
@Kim-Hyo-Bin Kim-Hyo-Bin deleted the go1.18-to-1.21-upgrade branch March 5, 2024 01:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants