Skip to content

Revert syft to v1.21.0 to reduce CLI binary size (AST-188320) - #1593

Closed
cx-rahul-pidde wants to merge 1 commit into
mainfrom
fix/AST-188320-revert-syft-size
Closed

cx-rahul-pidde wants to merge 1 commit into
mainfrom
fix/AST-188320-revert-syft-size

Conversation

@cx-rahul-pidde

Copy link
Copy Markdown
Contributor

Changes

  • Revert anchore/syft (and its transitive graph) to v1.21.0; keep Go at 1.26.10
  • Keep small direct bumps: x/crypto 0.58.0, x/sync 0.24.0, x/text 0.43.0, gomarkdown/markdown, x/sys, x/term, klauspost/compress, otel, k8s 0.36.3
  • go.mod/go.sum shrink by ~320 lines

Binary size (CGO_ENABLED=0, -ldflags="-s -w", windows/amd64)

Build Size
Before vuln-fix commits (c4375f5) 86.0 MB
Current main (syft 1.42.3) 119.4 MB
This PR 86.0 MB

Security tradeoff

syft 1.42.3 fixed GO-2026-4809 (syft) and removed GO-2025-4020 (rardecode, no fix). Reverting reintroduces both; govulncheck reports 9 vulns vs 7 on main. No suppressions added, so the govulncheck/Trivy checks may fail. Needs security sign-off.

Testing

  • go build and govulncheck run locally; unit tests not run locally, relying on CI

🤖 Generated with Claude Code

Keeps Go 1.26.10 and the small direct dependency bumps; drops the
syft v1.42.3 bump that pulled in go-getter, AWS/GCS SDKs and containerd v2.
Binary: 119.4 MB -> 86.0 MB.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@cx-rahul-pidde
cx-rahul-pidde requested a review from a team October 21, 2026 15:49
@cx-rahul-pidde cx-rahul-pidde changed the title AST-188320 Revert syft to v1.21.0 to reduce CLI binary size Revert syft to v1.21.0 to reduce CLI binary size (AST-188320) Oct 21, 2026
@cx-rahul-pidde

Copy link
Copy Markdown
Contributor Author

Superseded by #1594 (branch renamed to other/AST-188320-revert-syft-size)

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.

1 participant