bazel-contrib / bazel-contrib/rules_nodejs
[FR]: Allow to disable mutex while keeping global yarn cache
Open
enhancement
- Dominant language
- Starlark
- Stars
- 762
- Forks
- 531
- Avg merge
- 10h 31m
- Merged PRs (30d)
- 3
Description
### What is the current behavior?
`use_global_yarn_cache = true` by default pass `--mutex network` and there's no in-between, I cannot have the use of a global cache with no mutex.
### Describe the feature
I run bazel builds making use of `rules_nodejs` in Nix, which provides an immutable offline Yarn cache.
I would like to disable the mutex while letting the "yarn install" do the trivial thing of examining that cache without worrying about thread safety, which should give a boost to my builds.
Unfortunately, I cannot find an obvious way to do this.
Contributor guide
Assessment
This issue has not been assessed yet.