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

Update to go122 165 #166

Merged
merged 6 commits into from
Feb 20, 2024
Merged

Update to go122 165 #166

merged 6 commits into from
Feb 20, 2024

Conversation

funkyshu
Copy link
Member

@funkyshu funkyshu commented Feb 19, 2024

Update to Go1.22.
Update CI matrix to include 1.21 and 1.22.
Update GH action workflows to latest version.
Update golang-ci versions to 1.21.
Update go.mod to 1.21.
Update all dependencies.

@c2fo-cibot c2fo-cibot bot added the size/L Denotes a PR that changes 100-499 lines label Feb 19, 2024
@codecov-commenter
Copy link

codecov-commenter commented Feb 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (9b69441) 71.36% compared to head (5bf8f60) 21.04%.
Report is 2 commits behind head on master.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@             Coverage Diff             @@
##           master     #166       +/-   ##
===========================================
- Coverage   71.36%   21.04%   -50.33%     
===========================================
  Files          40       58       +18     
  Lines        4700    18940    +14240     
===========================================
+ Hits         3354     3985      +631     
- Misses       1066    14521    +13455     
- Partials      280      434      +154     

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

@@ -625,7 +625,7 @@ func generatePrivateKey(passphrase []byte) ([]byte, error) {
}

if len(passphrase) > 0 {
pemBlock, err = x509.EncryptPEMBlock(rand.Reader, pemBlock.Type, pemBlock.Bytes, passphrase, x509.PEMCipherAES256)
pemBlock, err = ssh.MarshalPrivateKeyWithPassphrase(privateKey, "", passphrase)
Copy link
Member Author

Choose a reason for hiding this comment

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

This changed because x509.EncryptPEMBlock( is deprecated which the linter caught. It hard matters since it was in a test but for completeness, I updated it.

@funkyshu funkyshu merged commit fcb1bf3 into master Feb 20, 2024
@funkyshu funkyshu deleted the update_to_go122_165 branch February 20, 2024 10:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/L Denotes a PR that changes 100-499 lines
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants