Skip to content

Do not make a copy of PUB_CACHE, just create an empty one instead. #4032

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 22, 2025

Conversation

jonasfj
Copy link
Member

@jonasfj jonasfj commented Apr 10, 2025

Copying my 11GB PUB_CACHE crashed createThrowawayPubCache, something about Link. But fundamentally, it's probably almost as fast to just download the packages again.

And if we really want to avoid downloading the PUB_CACHE we could avoid global activate, or create a PUB_CACHE we can clone inside .dart_tool/.

But creating a copy of the default PUB_CACHE is not likely to be faster, and probably harder to do, since you can have entire git checkouts, and legacy packages that were extracted with system tar which might have symlinks inside them 🙈

(You could also argue I should clean up my 11GB PUB_CACHE, 🤣)

@jonasfj jonasfj requested a review from srawlins April 10, 2025 12:25
@szakarias szakarias merged commit 0388c64 into dart-lang:main Apr 22, 2025
9 checks passed
@jonasfj jonasfj deleted the dont-copy-pubcache branch April 22, 2025 10:59
copybara-service bot pushed a commit to dart-lang/sdk that referenced this pull request Apr 28, 2025
Revisions updated by `dart tools/rev_sdk_deps.dart`.

dartdoc (https://github.com/dart-lang/dartdoc/compare/1788710..1a08646):
  1a08646a  2025-04-28  Sam Rawlins  Stop using InterfaceElementImpl2 (dart-lang/dartdoc#4041)
  38b7d2e0  2025-04-28  Sam Rawlins  Stop using ConstructorElementImpl (dart-lang/dartdoc#4040)
  ad65ae89  2025-04-25  Sarah Zakarias  Make redirect pages for categories (dart-lang/dartdoc#4037)
  9ab9ba05  2025-04-23  Parker Lougheed  Migrate remaining styles to use sass nesting (dart-lang/dartdoc#4024)
  aaea6377  2025-04-22  Jonas Finnemann Jensen  Use _category name_ in the URL, instead of the _category displayName_. (dart-lang/dartdoc#4031)
  0388c64e  2025-04-22  Jonas Finnemann Jensen  Do not make a copy of PUB_CACHE, just create an empty one instead. (dart-lang/dartdoc#4032)

tools (https://github.com/dart-lang/tools/compare/11a7719..11f4cf7):
  11f4cf7e  2025-04-24  Callum Moffat  [html] Various performance optimizations (dart-lang/tools#2019)
  98d4e4d9  2025-04-22  Simone Stasi  [html] fix TypeError in nth-child query selector (dart-lang/tools#2015)

Change-Id: Ic5d0a5f7f9393fa1a585b80ec1e014647224f151
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/425200
Auto-Submit: Devon Carew <[email protected]>
Reviewed-by: Konstantin Shcheglov <[email protected]>
Commit-Queue: Konstantin Shcheglov <[email protected]>
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