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
It seems that for dependencies which themselves contain a yarn v1 lockfile, the enableScripts configuration value is ignored and lifecycle scripts are run regardless.
To reproduce
(Aside: The sherlock link in the GH template is 404ing)
Set enableScripts: false in .yarnrc.yaml
Add package with yarn v1 yarn.lock to dependencies
Run yarn install
A reproduction PR on a minimal repo is available. As can be seen in the GitHub Actions workflow output from the yarn install step, the dependencypreinstall and postinstall lifecycle scripts are triggered as part of the Resolution step.
Self-service
Describe the bug
It seems that for dependencies which themselves contain a yarn v1 lockfile, the
enableScripts
configuration value is ignored and lifecycle scripts are run regardless.To reproduce
(Aside: The sherlock link in the GH template is 404ing)
enableScripts: false
in.yarnrc.yaml
yarn.lock
todependencies
yarn install
A reproduction PR on a minimal repo is available. As can be seen in the GitHub Actions workflow output from the
yarn install
step, the dependencypreinstall
andpostinstall
lifecycle scripts are triggered as part of theResolution step
.Environment
Additional context
The text was updated successfully, but these errors were encountered: