-
Notifications
You must be signed in to change notification settings - Fork 274
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(workflows): error when running
garden
in a workflow script step
This works around vercel/pkg#897 by patching the `pkg` `prelude/bootstrap.js` script. Fixes #2032
- Loading branch information
Showing
6 changed files
with
73 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/node_modules/pkg/prelude/bootstrap.js b/node_modules/pkg/prelude/bootstrap.js | ||
index 0d19f1d..f7f5415 100644 | ||
--- a/node_modules/pkg/prelude/bootstrap.js | ||
+++ b/node_modules/pkg/prelude/bootstrap.js | ||
@@ -1400,7 +1400,7 @@ function payloadFileSync (pointer) { | ||
} | ||
var opts = args[pos]; | ||
if (!opts.env) opts.env = require('util')._extend({}, process.env); | ||
- if (opts.env.PKG_EXECPATH === 'PKG_INVOKE_NODEJS') return; | ||
+ if (opts.env.PKG_EXECPATH !== undefined) return; | ||
opts.env.PKG_EXECPATH = EXECPATH; | ||
} | ||
|
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
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