Skip to content

Commit 9cb7d30

Browse files
committed
apply path fix
1 parent 1b38e8c commit 9cb7d30

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

internal/config/projectconfig/apply.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import (
44
"fmt"
55
"os/exec"
66
"path"
7-
"path/filepath"
87
"strings"
98

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

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

0 commit comments

Comments
 (0)