Skip to content

build: add Bazel definitions - #138

Open
ttaylorr-oai wants to merge 21 commits into
codexfrom
tb/codex/bazel-build
Open

ttaylorr-oai wants to merge 21 commits into
codexfrom
tb/codex/bazel-build

Conversation

@ttaylorr-oai

@ttaylorr-oai ttaylorr-oai commented Oct 6, 2026 •

Copy link
Copy Markdown
Collaborator

Add Bazel targets for Git's C programs, shell helpers, and runtime data so a consuming workspace can pin a source archive and apply local patches with http_archive.

The consumer supplies dependencies, dependency patches, toolchains, and installation. Git uses its existing source generators and registry-derived platform configuration, with GNU Windows, PCRE2, native zlib-ng, iconv, filesystem monitoring, and relocatable runtime paths. The registry license and attribution are retained.

Validation: Bazel 9.2 archive builds, transport-feature checks, and executable smoke checks passed on Linux, macOS, and Windows, each on x86-64 and AArch64, using consumer-provided dependency versions and patches.

Integrate the current tb/codex/automation topic into the internally distributed codex branch.

Codex-Integration: tb/codex/automation@ce95792760c30303f52102a1212a7e3077c81725
Integrate the current tb/codex/geometric-maintenance-promisor topic into the internally distributed codex branch.

Codex-Integration: tb/codex/geometric-maintenance-promisor@88692936f801c55a4364c8fe5f45d8c0c1da89c6
Integrate the current tb/codex/release topic into the internally distributed codex branch.

Codex-Integration: tb/codex/release@1b88d62e41838de957819f9a7489a9bb5460ca84
Integrate the current dr/codex/dugite topic into the internally distributed codex branch.

Codex-Integration: dr/codex/dugite@836f26007e5d14a708321f43616e3816f2eb653a
Integrate the current tb/codex/lto-pgo topic into the internally distributed codex branch.

Codex-Integration: tb/codex/lto-pgo@26c4e4ecf91d656161f7be50c49e565875c21500
Integrate the current tb/codex/packfile-uri-concurrency topic into the internally distributed codex branch.

Codex-Integration: tb/codex/packfile-uri-concurrency@b8242b093d9e941a34460d715e3ce616a34ac3fe
Integrate the current af/codex/pack-bytes topic into the internally distributed codex branch.

Codex-Integration: af/codex/pack-bytes@ddbae50aea2e5fe361c2e8536d5f50b8ce9b549d
Integrate the current tb/codex/parallel-packfile-uris topic into the internally distributed codex branch.

Codex-Integration: tb/codex/parallel-packfile-uris@4867165b201cf355e24de85c186ae867a097e0b1
Integrate the current tb/codex/release-tooling topic into the internally distributed codex branch.

Codex-Integration: tb/codex/release-tooling@faaebf896703c898091c78788e5ad1ff7fcb5f2e
Integrate the current tb/codex/pin-ci-actions topic into the internally distributed codex branch.

Codex-Integration: tb/codex/pin-ci-actions@e8e666c1133f5a21d07ff1809437530cb308f26f
Integrate the current dr/codex/trace2-redact-url-signatures topic into the internally distributed codex branch.

Codex-Integration: dr/codex/trace2-redact-url-signatures@764f04785bdeb2888365b234ae3eae2062130e8d
Integrate the current af/codex/packfile-uri-credentials topic into the internally distributed codex branch.

Codex-Integration: af/codex/packfile-uri-credentials@bd3090bbf2e02e230c4a816288512eab27cb289f
Integrate the current tb/codex/pin-windows-sdk topic into the internally distributed codex branch.

Codex-Integration: tb/codex/pin-windows-sdk@3a704dfc85e3e691f90af6a3ecb151ac11166568
Integrate the current tb/codex/explicit-haves topic into the internally distributed codex branch.

Codex-Integration: tb/codex/explicit-haves@a3eae730133768ea334731d2f48a80aff724fb5d
Integrate the current tb/codex/remote-curl-gzip-reauth topic into the internally distributed codex branch.

Codex-Integration: tb/codex/remote-curl-gzip-reauth@50f753ee38ef84de2fc22ca5cdde6698f0479f85
Integrate the current af/codex/receive-pack-explicit-haves-discovery topic into the internally distributed codex branch.

Codex-Integration: af/codex/receive-pack-explicit-haves-discovery@fe89199a7385df44f4c0f76b8c299678cae33b67
Integrate the current af/codex/http-auth-retry-redirect-v2 topic into the internally distributed codex branch.

Codex-Integration: af/codex/http-auth-retry-redirect-v2@b81ca645fdf0bf70789691823f9d7a4abbb05697
Integrate the current tb/codex/incremental-midx topic into the internally distributed codex branch.

Codex-Integration: tb/codex/incremental-midx@7340fcf91e0726cded2a3d95c38e278c2b2268bf
Integrate the current tb/codex/debian12-http2-auth topic into the internally distributed codex branch.

Codex-Integration: tb/codex/debian12-http2-auth@003e6089a2598e2f37eb2326ab3947836ebb86c0
Integrate the current tn/codex/http-pack-transient-retry topic into the internally distributed codex branch.

Codex-Integration: tn/codex/http-pack-transient-retry@540401f2f3be07bfa4c9cf32ec99c8cad7e5bcd1
@ttaylorr-oai ttaylorr-oai changed the title build: add standalone Bazel support build: add standalone Bazel definitions Oct 6, 2026
@ttaylorr-oai ttaylorr-oai changed the title build: add standalone Bazel definitions build: add Bazel definitions Oct 6, 2026
@ttaylorr-oai
ttaylorr-oai marked this pull request as ready for review October 6, 2026 21:54
Build Git and its C and shell helpers from a source archive, using the
consuming workspace's dependencies and toolchain configuration.

Adapt the registry's platform configuration for GNU Windows, PCRE2,
native zlib-ng, iconv, and relocatable runtime paths. Reuse Git's source
generators and retain the registry license and attribution.

This branch has not been deployed

No deployments
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