FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

feat(@angular/build): share persistent build cache across git worktrees by clydin · Pull Request #33519 · angular/angular-cli · GitHub

Repository navigation

feat(@angular/build): share persistent build cache across git worktrees - #33519

Merged
clydin merged 1 commit into
angular:mainfrom
clydin:feat-cache-share-git-worktrees
Jul 7, 2026
Merged

clydin merged 1 commit into
angular:mainfrom
clydin:feat-cache-share-git-worktrees

Conversation

clydin commented Jul 6, 2026

Copy link
Copy Markdown
Member

This change automatically resolves the default persistent cache directory relative to the common git directory (the main repository root) instead of the worktree root when a Git worktree is detected. This prevents cache duplication across multiple checkouts/worktrees of the same repository.

Closes #33321

This change automatically resolves the default persistent cache directory relative to the common git directory (the main repository root) instead of the worktree root when a Git worktree is detected. This prevents cache duplication across multiple checkouts/worktrees of the same repository.

Closes angular#33321
clydin added the target: minor This PR is targeted for the next minor release label Jul 6, 2026
angular-robot Bot added detected: feature PR contains a feature commit area: @angular/build labels Jul 6, 2026

gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Code Review

This pull request adds support for resolving the Angular cache path relative to the main repository root when working within a Git worktree. It introduces a helper function getCacheBasePath in both the build and CLI utilities to traverse directories, parse .git files, and locate the common Git directory if a worktree is detected. Comprehensive unit tests are also added. The review feedback points out that wrapping the entire directory traversal loop in a try...catch block could prematurely abort the search on file system errors (such as permission issues). It is recommended to scope the try...catch block to individual file system operations inside the loop to ensure robust traversal.

clydin added the action: review The PR is still awaiting reviews from at least one requested reviewer label Jul 6, 2026
clydin requested a review from alan-agius4 July 6, 2026 18:32
alan-agius4 added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Jul 7, 2026
clydin merged commit 52ae7f8 into angular:main Jul 7, 2026
44 checks passed

clydin commented Jul 7, 2026

Copy link
Copy Markdown
Member Author

This PR was merged into the repository. The changes were merged into the following branches:

clydin deleted the feat-cache-share-git-worktrees branch July 7, 2026 16:42

aqeelat commented Jul 7, 2026

Copy link
Copy Markdown

@clydin will this be backported to v21?

Copy link
Copy Markdown

This pull request has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

angular-automatic-lock-bot Bot locked and limited conversation to collaborators Aug 7, 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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker area: @angular/build detected: feature PR contains a feature commit target: minor This PR is targeted for the next minor release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Share persistent build cache across git worktrees

3 participants


Back | FazBrowse Home | New Git URL