Skip to content

Commit

Permalink
use filepath.ListSeparator for PATH environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
mattn committed Apr 15, 2018
1 parent ca6776a commit dbf74d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/grapicmd/internal/usecase/execute_protoc_usecase.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ func (u *executeProtocUsecase) executeProtoc(protoPath string) error {
return errors.WithStack(err)
}
for _, cmd := range cmds {
out, err := u.commandFactory.Create(cmd).AddEnv("PATH", u.binDir+":"+os.Getenv("PATH")).SetDir(u.rootDir).Exec()
out, err := u.commandFactory.Create(cmd).AddEnv("PATH", u.binDir+string(filepath.ListSeparator)+os.Getenv("PATH")).SetDir(u.rootDir).Exec()
if err != nil {
return errors.Wrapf(err, "failed to execute module: %s", string(out))
}
Expand Down

0 comments on commit dbf74d3

Please sign in to comment.