File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -15,8 +15,7 @@ import (
15
15
)
16
16
17
17
const (
18
- exitCodeFailure = - 1
19
- exitCodeUsageError = 2
18
+ exitCodeFailure = - 1
20
19
21
20
debugLogFilename = "debug.log"
22
21
)
@@ -33,6 +32,7 @@ func main() {
33
32
Usage : "The path to a directory where working files will be written" ,
34
33
TakesFile : true ,
35
34
Value : filepath .Join ("." , util .BuildTempDir ),
35
+ Sources : cli .NewValueSourceChain (cli .EnvVar (util .EnvOtelWorkDir )),
36
36
},
37
37
},
38
38
Commands : []* cli.Command {
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ func BuildWithToolexec(ctx context.Context, args []string) error {
89
89
if err != nil {
90
90
return ex .Errorf (err , "failed to get executable path" )
91
91
}
92
- insert := "-toolexec=" + execPath + " --work-dir=" + util . GetOtelWorkDir () + " toolexec"
92
+ insert := "-toolexec=" + execPath + " toolexec"
93
93
const additionalCount = 2
94
94
newArgs := make ([]string , 0 , len (args )+ additionalCount ) // Avoid in-place modification
95
95
newArgs = append (newArgs , "go" )
You can’t perform that action at this time.
0 commit comments