Closed
Description
We encourage users to use the locking mechanism in their package manager, but we don't check that the dependencies match the versions in the lock file for each run.
Any time the node_modules directory changes, we should run yarn check --integrity
.
- catches issue with user having wrong yarn version installed
- prevents builds failing due to unexpected changes in node_modules (eg. user has installed something and not updated the yarn.lock)
currently we only do this when the repository_rule runs, and it's not re-run until the WORKSPACE changes.
Not sure what to do about npm
.