You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
There is one additional requirement needed for reproducibility: the npm registry needs to return identical packages for a given version. As I understand, this is not guaranteed to be the case for npmjs.org. Packages can change for any version without warning.
Any pointer to where I can read more about that? I know npm allows you to
unpublish a package for the first few hours, but other than that I thought
they are unchangeable.
Alex, you are right. Npm violated that rule during the left-pad disaster, thats where my misconception originated.
Once a package is published with a given name and version, that specific name and version combination can never be used again, even if it is removed with npm-unpublish.
In the time since this issue was filed, we introduced "bazel-managed node modules".
If you want the behavior that the node_modules is always up-to-date with the current build, you should use that feature.
I don't think we should fix this in the case of user-managed node_modules - if you install them yourself, then you are subject to the usual pitfall of forgetting to re-install after dependencies change.
Activity
jupp0r commentedon Nov 6, 2017
There is one additional requirement needed for reproducibility: the npm registry needs to return identical packages for a given version. As I understand, this is not guaranteed to be the case for npmjs.org. Packages can change for any version without warning.
alexeagle commentedon Nov 6, 2017
jupp0r commentedon Nov 6, 2017
Alex, you are right. Npm violated that rule during the left-pad disaster, thats where my misconception originated.
https://docs.npmjs.com/cli/publish
Add an npm_install WORKSPACE rule that can be used to instantiate nod…
alexeagle commentedon Nov 30, 2018
In the time since this issue was filed, we introduced "bazel-managed node modules".
If you want the behavior that the
node_modulesis always up-to-date with the current build, you should use that feature.I don't think we should fix this in the case of user-managed node_modules - if you install them yourself, then you are subject to the usual pitfall of forgetting to re-install after dependencies change.
Merge pull request #1 from mrmeku/linker_no_root_symlink
Update protractor_web_test.bzl (#1)
Allow ts_library without tsconfig attribute.