Skip to content

Bazel: Add lfs_archives function - #22483

Merged
redsun82 merged 4 commits into
mainfrom
jketema/lfs-archives
Sep 2, 2026
Merged

Bazel: Add lfs_archives function#22483
redsun82 merged 4 commits into
mainfrom
jketema/lfs-archives

Conversation

@jketema

@jketema jketema commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

This pulls out some generic stuff from the Swift static runtime into a generic location.

Internal clean-up PR will follow once this is in.

This pulls out some generic stuff from the Swift static runtime into
a generic location.

Internal clean-up PR will follow once this is in.
Copilot AI balanced review requested due to automatic review settings September 1, 2026 14:10
@jketema
jketema requested a review from a team as a code owner September 1, 2026 14:10
Comment thread misc/bazel/lfs.bzl

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

Duplicate archive basenames can collide in the shared staging location and cause incorrect extraction.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Review tier: Balanced
Findings: 1 Medium severity

New issues introduced by this change (1)
Severity Finding
Medium severity misc/​bazel/​lfs.bzl — Different source labels can have the same basename, but lfs_smudge stages every input at…
What changed in this PR

Adds reusable support for overlaying multiple Git LFS archives in one Bazel repository.

Changes:

  • Fixes multi-source download/extraction sequencing.
  • Adds the public lfs_archives repository rule.
File Description
misc/​bazel/​lfs.bzl Adds ordered multi-archive LFS extraction support.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread misc/bazel/lfs.bzl Outdated
def _download_and_extract_lfs_archives(repository_ctx):
lfs_smudge(
repository_ctx,
[repository_ctx.path(src) for src in repository_ctx.attr.srcs],

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed in c5f2bdb

@jketema
jketema requested a review from redsun82 September 2, 2026 09:57

@redsun82 redsun82 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks a lot, only a minor nit on my side

Comment thread misc/bazel/lfs.bzl
Comment thread misc/bazel/lfs.bzl Outdated
Comment thread misc/bazel/lfs.bzl
@jketema
jketema requested a review from redsun82 September 2, 2026 12:36

@redsun82 redsun82 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@redsun82
redsun82 merged commit 1161393 into main Sep 2, 2026
80 checks passed
@redsun82
redsun82 deleted the jketema/lfs-archives branch September 2, 2026 14:31
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.

3 participants