Skip to content

Disable VCS metadata in Go build - #6607

Merged
vimtor merged 1 commit into
anomalyco:devfrom
MaTTaDox:fix/bridge-build-without-vcs-metadata
Mar 18, 2026
Merged

Disable VCS metadata in Go build#6607
vimtor merged 1 commit into
anomalyco:devfrom
MaTTaDox:fix/bridge-build-without-vcs-metadata

Conversation

@MaTTaDox

Copy link
Copy Markdown
Contributor

Add -buildvcs=false to the go build invocation in platform/scripts/build for the bridge binary. This prevents embedding VCS metadata into the output, improving reproducibility of the built artifact.

Problem

This is another issue related to sst dev.
At the moment, the hash of the build bridge bootstrap binary changes with every commit. As a result, all Lambda functions are treated as changed after every SST release.
#6465 already reduced this to a single upload, but the S3 key for every Lambda is still changing, which can still slow deployments down.

Changes

  • remove vcs information from go build

Validation

I tested this by switching between commits, with this change the hash stays stable, without it changed every time.

@vimtor this is the other problem i mentioned in my #6465.

Add -buildvcs=false to the go build invocation in platform/scripts/build for the bridge binary. This prevents embedding VCS metadata into the output, avoiding build failures when VCS info is unavailable and improving reproducibility of the built artifact.

@vimtor vimtor 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.

goat @MaTTaDox

merging this. could you check other places in the codebase where this flag is worth adding too? maybe for the bridge task or go lambdas?

@vimtor
vimtor merged commit 9d00292 into anomalyco:dev Mar 18, 2026
1 check passed
jamesgibbons92 pushed a commit to jamesgibbons92/sst that referenced this pull request Apr 7, 2026
@MaTTaDox

Copy link
Copy Markdown
Contributor Author

@vimtor better late than never 😅 sorry for the delay — finally checked. The go lambdas and the bridge task were both still stamped: #6976

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.

2 participants