From 9cb7d30807dce2bdc4073d0e36bb314cf9c1efbb Mon Sep 17 00:00:00 2001 From: Thiago Araujo Date: Fri, 5 Jun 2020 17:30:46 -0700 Subject: [PATCH] apply path fix --- internal/config/projectconfig/apply.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/internal/config/projectconfig/apply.go b/internal/config/projectconfig/apply.go index b348fec68..0e21e12eb 100644 --- a/internal/config/projectconfig/apply.go +++ b/internal/config/projectconfig/apply.go @@ -4,7 +4,6 @@ import ( "fmt" "os/exec" "path" - "path/filepath" "strings" "github.com/commitdev/zero/internal/util" @@ -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)