Skip to content
This repository has been archived by the owner on Aug 5, 2022. It is now read-only.

Commit

Permalink
fix missing env
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenlacy committed Aug 31, 2021
1 parent e3a6f48 commit 5e7e9cc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/monokube/monokube.go
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,9 @@ func getImage(imageRoot string, pkg Package) string {

func runBackground(pkg Package, name string, args ...string) error {
cmd := exec.Command(name, args...)
cmd.Env = os.Environ()
cmd.Env = append(cmd.Env, "PACKAGE="+pkg.Name)
cmd.Env = append(cmd.Env, "IMAGE_ROOT="+pkg.ImageRoot)
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
err := cmd.Run()
Expand Down

0 comments on commit 5e7e9cc

Please sign in to comment.