Skip to content

Commit

Permalink
apply path fix
Browse files Browse the repository at this point in the history
  • Loading branch information
thdaraujo committed Jun 10, 2020
1 parent 1b38e8c commit 9cb7d30
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions internal/config/projectconfig/apply.go
Expand Up @@ -4,7 +4,6 @@ import (
"fmt"
"os/exec"
"path"
"path/filepath"
"strings"

"github.com/commitdev/zero/internal/util"
Expand Down Expand Up @@ -33,10 +32,7 @@ func makeAll(dir string, projectContext *ZeroProjectConfig, applyEnvironments []
for _, module := range projectContext.Modules {
// TODO what's the root dir for these modules?
// what's the real path to these modules? It's probably not the module name...
modulePath, err := filepath.Abs(path.Join(dir, projectContext.Name, module.Files.Directory))
if err != nil {
return err
}
modulePath := path.Join(dir, projectContext.Name, module.Files.Directory)

// @TODO mock exec?
output := util.ExecuteCommandOutput(exec.Command("make", environmentArg), modulePath, envars)
Expand Down

0 comments on commit 9cb7d30

Please sign in to comment.