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 to golang 1.21 #429

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Upgrade to golang 1.21 #429

wants to merge 1 commit into from

Conversation

jkl73
Copy link
Contributor

@jkl73 jkl73 commented Apr 1, 2024

Clean up go.mod and upgrade dependencies.
Update all Go version to 1.21.

Changes made to accommodate linter for deprecation errors:

  1. Update cmd/flush.go `cmd/pubkey.go
cobra.ExactValidArgs(1) -> cobra.MatchAll(cobra.ExactArgs(1), cobra.OnlyValidArgs)
  1. Add a comment in server/import.go to suppress a linter error (because elliptic.GenerateKey is deprecated, but the new library crypto/ecdh doesn't support P226)
  2. Update launcher/auth.go (options.Authrorize is deprecated)
options.Authorizer = docker.NewDockerAuthorizer(authOpts...) -> options.Hosts = docker.ConfigureDefaultRegistries(
		docker.WithAuthorizer(docker.NewDockerAuthorizer(authOpts...)))

@jkl73 jkl73 force-pushed the addversioncmd branch 2 times, most recently from 624cb59 to 9574ec0 Compare April 2, 2024 00:00
@jkl73 jkl73 changed the title Upgrade to Go 1.21, add version flag to gotpm cmd Upgrade to golang 1.21 Apr 2, 2024
@jkl73

This comment was marked as duplicate.

@jkl73

This comment was marked as duplicate.

@jkl73 jkl73 requested a review from alexmwu April 2, 2024 17:02
Fix new linter issues
@jkl73
Copy link
Contributor Author

jkl73 commented Apr 2, 2024

/gcbrun

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.

None yet

2 participants