Repository navigation
Use UPX filters when committing SDK package updates - #137
Merged
Merged
Conversation
Member
Author
|
Corresponding ARM64 PR: git-for-windows#70 |
mjcheetham
force-pushed
the
upx-workflow-integration
branch
from
November 3, 2026 11:29
be6c9a7 to
22478df
Compare
Package-update jobs must configure the local UPX driver before staging files selected by filter=upx attributes. Otherwise Git can stage the original unpacked binaries instead of their compressed representation. Run the setup helper in configuration-only mode before git add, and stop if setup fails. Leave working-tree files untouched: package updates need clean filtering during staging, not a smudge refresh of the checkout. This prepares the shared commit helper for targeted LLVM attributes when Rust's LLVM binaries are introduced; it does not select any new files for compression. Assisted-by: GPT-6.1 Sol Signed-off-by: Matthew John Cheetham <mjcheetham@outlook.com>
Rust's LLVM library needs compressed storage to fit remote file-size limits. Select that DLL explicitly for UPX clean/smudge filtering, leaving unrelated binaries untouched. Package-update automation configures the driver before staging, so original package bytes can remain in the working tree while Git stores the packed representation. Ordinary clones retain runnable packed binaries; users can opt in to unpacking after checkout. Add the attribute before introducing the package so its first generated commit stores the DLL through the clean filter. Assisted-by: GPT-6.1 Sol Signed-off-by: Matthew John Cheetham <mjcheetham@outlook.com>
mjcheetham
force-pushed
the
upx-workflow-integration
branch
from
November 4, 2026 14:15
22478df to
970b2e3
Compare
mjcheetham
marked this pull request as ready for review
November 4, 2026 14:15
dscho
reviewed
Nov 4, 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.
Summary
Prepare package-update automation to store Rust's LLVM DLL through the UPX clean filter, preserving original package bytes in the working tree.
.github/commit-sdk.sh, using--no-refresh.ucrt64/bin/libLLVM-22.dllwithfilter=upx.Ordinary clones retain runnable packed binaries. Users can optionally enable smudge filtering to trade disk space for faster loading.
Dependencies and follow-ups
Depends on #136; its commits appear here until that PR is merged.This does not install Rust or LLVM. Updating the package-install workflow on Rust PR #132 is a follow-up. No installation workflow has been dispatched.
Validation
Disposable repository tests verified setup runs before staging, successful commits leave working-tree bytes unchanged, and setup failure prevents staging and committing.
Attribute checks confirmed only the intended LLVM DLL is selected. Shell syntax and whitespace checks passed.