Skip to content

Commit

Permalink
fix: setting environment variables
Browse files Browse the repository at this point in the history
  • Loading branch information
TristanSpeakEasy committed Nov 15, 2023
1 parent 664ea02 commit f92a499
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions internal/cli/speakeasy.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,8 @@ func runSpeakeasyCommand(args ...string) (string, error) {

cmd := exec.Command(cmdPath, args...)
cmd.Dir = filepath.Join(environment.GetWorkspace(), "repo", environment.GetWorkingDirectory())
cmd.Env = []string{
"SPEAKEASY_RUN_LOCATION=action",
}
cmd.Env = os.Environ()
cmd.Env = append(cmd.Env, "SPEAKEASY_RUN_LOCATION=action")
output, err := cmd.CombinedOutput()
if err != nil {
return string(output), fmt.Errorf("error running speakeasy command: speakeasy %s - %w\n %s", strings.Join(args, " "), err, string(output))
Expand Down

0 comments on commit f92a499

Please sign in to comment.