-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
bugSomething isn't workingSomething isn't workingstaleIssues that didn't get attentionIssues that didn't get attention
Description
Self-service
- I'd be willing to implement a fix
Describe the bug
When using the workspace focus feature, the enableScripts setting is not respected in that if it is false, the postinstall's still seem to be executed. This is the case wether its in .yarnrc.yml or used an env var for example yarn_enable_scripts=false yarn workspaces focus -A --production.
To reproduce
I was unable to use sherlock because I couldnt see how to pass the yarn_enable_scripts=false. Let me know if theres a way.
Basically need a package.json with a echo hello postinstall script. Then execute yarn_enable_scripts=false yarn workspaces focus -A --production and observe hello is echoed.
Environment
System:
OS: macOS 12.1
CPU: (10) x64 Apple M1 Pro
Binaries:
Node: 14.18.2 - /private/var/folders/lr/sq4c_jm56k51tdjj57gj2dc00000gp/T/xfs-7b848785/node
Yarn: 3.2.1 - /private/var/folders/lr/sq4c_jm56k51tdjj57gj2dc00000gp/T/xfs-7b848785/yarn
npm: 6.14.15 - ~/.nvm/versions/node/v14.18.2/bin/npmAdditional context
Same as #4386
JuliusHenke
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingstaleIssues that didn't get attentionIssues that didn't get attention