-
-
Notifications
You must be signed in to change notification settings - Fork 644
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
additional tools during nodejs processes invocation (#21833)
# Description During nodejs processes execution, such as `yarn install`, some additional tools might need to be present on the PATH, e.g. make, cp, c++, etc, specially when the npm dependencies uses `node-gyp` under the hood, so these additional tools are necessary to compile binaries. The current implementation doesn’t allow us to specify more tools than the default. This adds `tools` and `optional_tools` as options to the `nodejs` subsystem so that these additional tools can be added to the sandbox during nodejs processes execution. There might be cases where macos specific tools might be needed - mostly when `node-gyp` is used - such as `xcrun` and `xcodebuild`, which are necessary to compile native stuff, and these tools are not available on linux based os, so I've added the `optional_tools` where these specific tools can be set. Fixes #21638.
- Loading branch information
1 parent
77aa4d8
commit 5952e3f
Showing
3 changed files
with
211 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters