Fix Nix Go toolchain and x/net CVEs

Merged
RO
5mo ago
+10-10

Summary

Fix the current Nix install failure and clear the Trivy x/net findings on main:

  • update flake.lock to a nixpkgs revision where go_1_26 is Go 1.26.4
  • bump golang.org/x/net to v0.55.0 and golang.org/x/term to v0.43.0
  • recompute nix/package.nix vendorHash for the updated module graph

Closes #504. Unblocks PR #450 by removing the go.mod Trivy findings.

Validation

  • GOWORK=off go test ./...
  • GOWORK=off make tidy-check
  • GOWORK=off make provenance-check
  • docker run --rm -v "$PWD":/src aquasec/trivy:0.70.0 fs /src --severity HIGH,CRITICAL --ignore-unfixed --format table --scanners vuln --skip-dirs /src/.ruby-lsp confirms go.mod has 0 findings
  • Nix build via pinned nixos/nix Docker image with --cores 1 --max-jobs 1 succeeds and uses cached Go 1.26.4

Note: full local Trivy without --skip-dirs /src/.ruby-lsp reports local editor Ruby LSP files that are not part of the tracked repo/CI checkout.


Summary by cubic

Fixes Nix install failures by pinning nixpkgs so go_1_26 resolves to Go 1.26.4 and updates golang.org/x/net to clear CVEs. Trivy is clean and Nix builds succeed; closes #504 and unblocks #450.

  • Dependencies
    • Update flake.lock to use Go 1.26.4 for go_1_26.
    • Bump golang.org/x/net to v0.55.0 and golang.org/x/term to v0.43.0.
    • Recompute vendorHash in nix/package.nix.