Skip to content
This repository has been archived by the owner on Feb 1, 2023. It is now read-only.

Use local cache for yarn commands #17

Closed
corradio opened this issue Jan 24, 2020 · 1 comment · Fixed by #26
Closed

Use local cache for yarn commands #17

corradio opened this issue Jan 24, 2020 · 1 comment · Fixed by #26

Comments

@corradio
Copy link
Member

No description provided.

@corradio corradio mentioned this issue Jan 24, 2020
11 tasks
@madsnedergaard
Copy link
Member

Additional info from @corradio:

The cache location varies depending on the node image used (some platforms put the yarn cache different places), but maybe we could maintain a mapping between the image name and cache location.


I noticed brick was a bit slow during the prepare stage when using yarn.
This is due to the fact that any change to the package.json or yarn.lock will cause yarn to run from scratch (it has to re-download all packages).
Turns out the yarn cache can be cached using this mount command:

image

It will make sure to avoid re-downloading packages that are already in the cache. It speeds up quite a lot the build in cases where one adds just a single package!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants