Repository navigation
build(libs): publish static libraries as immutable libs-<n> releases - #3481
Merged
Merged
Conversation
This was referenced Oct 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
libs-v1is a mutable release: every publish replaced its archives with--clobber, so an old commit could download libraries it was never built with.Change
publish-libs.shpublishesLibs/*.aandLibs/ios/*.xcframeworkas the next immutablelibs-<n>(draft, then publish,--latest=falseboth times), checks it is immutable, then writesLibs/releaseand both checksum files. It refuses alibs-*draft, a branch behind the newestlibs-<n>, unnamed changes, and an unchanged publish over an immutable pin.download-libs.shreads the tag fromHEAD:Libs/release, keeps it in the marker and downloads again when the pin moves. The "any .a exists" skips are gone.publish-ios-libs.shis deleted. The build scripts print the new publish command.libs-2is published from this branch: the same files aslibs-v1, checksums unchanged, archives without AppleDouble entries or xattrs.Verified
scripts/ci/test_libs_release.sh, new in Repo Hygiene, runs both scripts against a stubgh(macOS bash 3.2 and Linux).gh release view libs-2 --json isImmutableis true,releases/latestis stillv0.81.0, anddownload-libs.sh --forceverifieslibs-2against the committed checksums.Not in this PR
RELEASING.md(Static libraries) andCONTRIBUTING.md:31still describelibs-v1andpublish-ios-libs.sh;verify.sh agent-docsflagsRELEASING.md:61until that rewrite lands.