Skip to content

Vendor buildpack-stdlib instead of fetching from S3#639

Merged
runesoerensen merged 7 commits intomainfrom
vendor-buildpack-stdlib
Feb 18, 2026
Merged

Vendor buildpack-stdlib instead of fetching from S3#639
runesoerensen merged 7 commits intomainfrom
vendor-buildpack-stdlib

Conversation

@runesoerensen
Copy link
Copy Markdown
Contributor

@runesoerensen runesoerensen commented Feb 17, 2026

This PR vendors stdlib.sh.v8 instead of fetching it from S3 on every build. See this related PR for more context: heroku/heroku-buildpack-python#1100.

To drop the dependency on the lang-common S3 bucket, the files.json inventory was updated to use the upstream GitHub source URL instead. stdlib.sh.v8 will continue to be available in the S3 mirror bucket and this allow sbin/sync-files.sh to run without explicitly excluding it. That being said, we might want to just remove stdlib.sh.v8 from files.json, and update the make sync target accordingly - since it's no longer a required test asset, the file will only be downloaded from the source URL if someone tries to sync the files.json inventory to an S3 bucket that doesn't include it already (which is somewhat unlikely).

GUS-W-13958531

This also drops the `chmod a+x` bit, which isn't necessary as the file is only sourced
This version is identical to the one we downloaded from https://heroku-golang-prod.s3.us-east-1.amazonaws.com/stdlib.sh.v8, so prefer specifying the upstream source
Prefer using the upstream GitHub source to avoid the `lang-common` S3 bucket dependency
@runesoerensen runesoerensen changed the title Vendor buildpack stdlib instead of fetching from S3 Vendor buildpack-stdlib instead of fetching from S3 Feb 17, 2026
@runesoerensen runesoerensen marked this pull request as ready for review February 17, 2026 05:44
@runesoerensen runesoerensen requested a review from a team as a code owner February 17, 2026 05:44
@runesoerensen runesoerensen merged commit c1901d2 into main Feb 18, 2026
8 checks passed
@runesoerensen runesoerensen deleted the vendor-buildpack-stdlib branch February 18, 2026 00:02
@heroku-linguist heroku-linguist bot mentioned this pull request Feb 18, 2026
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