Skip to content

Conversation

@fmeum
Copy link
Collaborator

@fmeum fmeum commented Oct 29, 2025

The repo rule may modify the file downloaded via rctx.download, so it isn't safe to hardlink it.

In the future, when FileSystemUtils.copyFile is backed by Java's Files.copy, copying can reflink and thus recover the performance gain without using hardlinks.

Related to #27446

@fmeum fmeum force-pushed the 27446-no-download-hardlink branch 2 times, most recently from eb91168 to bf9c6b5 Compare October 29, 2025 11:30
@fmeum fmeum marked this pull request as ready for review October 29, 2025 11:30
@fmeum
Copy link
Collaborator Author

fmeum commented Oct 29, 2025

@bazel-io fork 8.5.0

@github-actions github-actions bot added team-ExternalDeps External dependency handling, remote repositiories, WORKSPACE file. awaiting-review PR is awaiting review from an assigned reviewer labels Oct 29, 2025
@fmeum fmeum requested a review from Wyverald October 29, 2025 11:31
@fmeum fmeum requested a review from meteorcloudy October 29, 2025 11:31
The repo rule may modify the file downloaded via `rctx.download`, so it isn't safe to hardlink it.

In the future, when `FileSystemUtils.copyFile` is backed by Java's `Files.copy`, copying can reflink and thus recover the performance gain without using hardlinks.
@fmeum fmeum force-pushed the 27446-no-download-hardlink branch from bf9c6b5 to 3f1533a Compare October 29, 2025 11:41
@fmeum
Copy link
Collaborator Author

fmeum commented Oct 29, 2025

@meteorcloudy FYI, the reflink optimization: #27459

Copy link
Member

@meteorcloudy meteorcloudy left a comment

Choose a reason for hiding this comment

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

Thanks!

@meteorcloudy meteorcloudy added awaiting-PR-merge PR has been approved by a reviewer and is ready to be merge internally and removed awaiting-review PR is awaiting review from an assigned reviewer labels Oct 29, 2025
@github-actions github-actions bot removed the awaiting-PR-merge PR has been approved by a reviewer and is ready to be merge internally label Oct 30, 2025
bazel-io pushed a commit to bazel-io/bazel that referenced this pull request Oct 30, 2025
The repo rule may modify the file downloaded via `rctx.download`, so it isn't safe to hardlink it.

In the future, when `FileSystemUtils.copyFile` is backed by Java's `Files.copy`, copying can reflink and thus recover the performance gain without using hardlinks.

Related to bazelbuild#27446

Closes bazelbuild#27453.

PiperOrigin-RevId: 825941868
Change-Id: I7764b142724b16c4a9d7694af066105bc7b76575
github-merge-queue bot pushed a commit that referenced this pull request Oct 31, 2025
The repo rule may modify the file downloaded via `rctx.download`, so it
isn't safe to hardlink it.

In the future, when `FileSystemUtils.copyFile` is backed by Java's
`Files.copy`, copying can reflink and thus recover the performance gain
without using hardlinks.

Related to #27446

Closes #27453.

PiperOrigin-RevId: 825941868
Change-Id: I7764b142724b16c4a9d7694af066105bc7b76575

Commit
957129f

Co-authored-by: Fabian Meumertzheim <fabian@meumertzhe.im>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

team-ExternalDeps External dependency handling, remote repositiories, WORKSPACE file.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants