Skip to content

chore: update x/crypto and x/sys while keeping Go 1.25 support - #219

Merged
Code-Hex merged 2 commits into
Code-Hex:mainfrom
jlagedo:chore/bump-go-1.26-and-deps
Sep 28, 2026
Merged

Code-Hex merged 2 commits into
Code-Hex:mainfrom
jlagedo:chore/bump-go-1.26-and-deps

Conversation

@jlagedo

@jlagedo jlagedo commented Jun 6, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Update golang.org/x/crypto to v0.52.0 and golang.org/x/sys to v0.45.0 to resolve the root module's Dependabot alerts #7 through #19. @jlagedo contributed the original dependency update.

Set the minimum Go version to 1.25.0, as required by the updated dependencies, so consumers can continue to use this library with Go 1.25. CI builds with both Go 1.25 and 1.26.

Fix four test diagnostics reported by go vet by formatting the bytes.Buffer contents as strings.

Verification

  • With Go 1.25.0, go vet ./..., test compilation, and builds of all three example modules passed.
  • With Go 1.25.0, go mod tidy -diff produced no changes.
  • All CI jobs passed, including the VM integration suite.

Note

The go directive specifies the minimum compiler version. Consumers should use the latest patch release of a supported Go version for their builds.

- Bump go directive 1.24.0 -> 1.26.4 in all modules (root + 3 examples),
  clearing the stdlib advisories flagged by osv-scanner for 1.24.0.
- Bump golang.org/x/crypto 0.46.0 -> 0.52.0 (x/sys 0.39.0 -> 0.45.0 via
  tidy), clearing GO-2026-5013/5017/5018/5019/5020. Test-only dependency,
  but bumped for downstream scanner hygiene.
- Fix 4 printf vet errors (buf -> buf.String()) surfaced by the stricter
  printf analyzer at the new go directive, in shared_directory_test.go and
  socket_test.go.
- Update CI matrix (build + test jobs) to ^1.26.

Verified: go vet ./... clean, library + all 3 example modules build, and
the codesigned VM integration suite passes (boots real Linux guests).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Comment thread go.mod Outdated

@AkihiroSuda AkihiroSuda left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@Code-Hex Code-Hex changed the title chore: bump Go to 1.26.4 and update dependencies chore: update x/crypto and x/sys while keeping Go 1.25 support Sep 28, 2026
@Code-Hex
Code-Hex dismissed AkihiroSuda’s stale review September 28, 2026 08:02

指摘された Go 1.25 の最低要件を追加コミットで維持しました。Go 1.25.0 で vet、ビルド、対象 VM テストを確認済みです。

@Code-Hex Code-Hex left a comment •

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Thank you!

@Code-Hex
Code-Hex merged commit f6dc11f into Code-Hex:main Sep 28, 2026
10 checks passed
@Code-Hex

Copy link
Copy Markdown
Owner

English clarification for the review dismissal: The follow-up commit keeps the minimum Go version at 1.25.0, as requested. With Go 1.25.0, go vet ./..., the example builds, and the affected VM tests passed.

@cfergeau

cfergeau commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

We objected to dropping go 1.25 support when this PR was filed as at the time, it was still a supported release upstream. However, go 1.27 has been released a few weeks ago, and 1.25 is now unsupported (see https://endoflife.date/go), so it would be less problematic to drop it in future PRs.

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.

5 participants