Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 596aa58b32d13327f43695d0477c1418041c0a40
      
https://github.com/WebKit/WebKit/commit/596aa58b32d13327f43695d0477c1418041c0a40
  Author: David Kilzer <[email protected]>
  Date:   2026-02-04 (Wed, 04 Feb 2026)

  Changed paths:
    M Tools/Scripts/webkitpy/__init__.py

  Log Message:
  -----------
  AutoInstall should not redownload packages for every git worktree
https://bugs.webkit.org/show_bug.cgi?id=307012
rdar://169665788

Reviewed by Jonathan Bedard.

When using git worktrees, each worktree redownloads its own copy of
autoinstalled third-party Python packages to its local
`Tools/Scripts/libraries/autoinstalled/` directory.  This causes
unnecessary network traffic and disk usage.

The fix detects when running in a git worktree using
`git rev-parse --git-common-dir` and shares the main repository's
autoinstalled packages directory.  Development libraries (webkitcorepy,
webkitscmpy, webkitbugspy) still load from the worktree itself, so
in-development features work correctly.

No new tests since this change is not directly testable.

* Tools/Scripts/webkitpy/__init__.py:
- Use main repo's autoinstalled path when running in a git worktree.
(_get_main_repo_autoinstall_path):
- Add function to detect git worktree and return main repo's
  autoinstalled path if it exists and is writable.

Canonical link: https://commits.webkit.org/306834@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to