Skip to content

Commit 9da061b

Browse files
Merge pull request #152 from StrongMonkey/fix-path
Fix: Use subPath as root dir when invoking runtime
2 parents 3ecde3e + 754ed30 commit 9da061b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/repos/get.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ func (m *Manager) setup(ctx context.Context, runtime Runtime, tool types.Tool, e
7878
return "", nil, err
7979
}
8080

81-
newEnv, err := runtime.Setup(ctx, m.runtimeDir, target, env)
81+
newEnv, err := runtime.Setup(ctx, m.runtimeDir, targetFinal, env)
8282
if err != nil {
8383
return "", nil, err
8484
}

pkg/repos/runtimes/golang/golang.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ func stripGo(env []string) (result []string) {
7777

7878
func (r *Runtime) runBuild(ctx context.Context, toolSource, binDir string, env []string) error {
7979
log.Infof("Running go build in %s", toolSource)
80-
cmd := debugcmd.New(ctx, filepath.Join(binDir, "go"), "build", "-o", "bin/gptscript-go-tool")
80+
cmd := debugcmd.New(ctx, filepath.Join(binDir, "go"), "build", "-buildvcs=false", "-o", "bin/gptscript-go-tool")
8181
cmd.Env = stripGo(env)
8282
cmd.Dir = toolSource
8383
return cmd.Run()

0 commit comments

Comments
 (0)