Skip to content

Commit

Permalink
modify PATH to prefer downloaded protoc binaries over what could alre…
Browse files Browse the repository at this point in the history
…ady be on the system
  • Loading branch information
jwasinger committed Jul 1, 2024
1 parent 8a999b9 commit 6d6c0bf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions build/ci.go
Original file line number Diff line number Diff line change
Expand Up @@ -395,8 +395,7 @@ func doGenerate() {
}

c := tc.Go("generate", "./...")
newPathEnv := os.Getenv("PATH") + string(os.PathListSeparator) + protocPath + string(os.PathSeparator) + "bin"
newPathEnv += string(os.PathListSeparator) + protocGenGoPath
newPathEnv := protocPath + string(os.PathSeparator) + "bin" + string(os.PathListSeparator) + protocGenGoPath + string(os.PathListSeparator) + os.Getenv("PATH")
c.Env = append(c.Env, "PATH="+newPathEnv)
build.MustRun(c)

Expand Down

0 comments on commit 6d6c0bf

Please sign in to comment.