Skip to content

Commit

Permalink
fix(exec): error when calling garden CLI within exec module tasks
Browse files Browse the repository at this point in the history
This fixes that pkg issue we had previously fixed for workflow steps,
but left out of the exec module type.
  • Loading branch information
edvald authored and thsig committed Nov 17, 2021
1 parent 946b056 commit 3fdcffb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/src/plugins/exec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,8 @@ function getDefaultEnvVars(module: ExecModule) {
return {
...process.env,
GARDEN_MODULE_VERSION: module.version.versionString,
// Workaround for https://github.com/vercel/pkg/issues/897
PKG_EXECPATH: "",
...mapValues(module.spec.env, (v) => v.toString()),
}
}
Expand Down

0 comments on commit 3fdcffb

Please sign in to comment.