internal/version: prefix PATH with $GOROOT/bin

Adding $GOROOT/bin to $PATH ensures that the appropriate version of the
go/gofmt commands are run when using a go command wrapper generated by
x/build/version.

Fixes golang/go#28103

Change-Id: Ia72fb936631a3720cb15fcf8988dcec5f57a202a
Reviewed-on: https://go-review.googlesource.com/c/143545
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
1 file changed
tree: ee7b8fff452ab7170ea8a922c7da2c128a9e8a21
  1. README.md
  2. codereview.cfg
  3. go1.10.1/
  4. go1.10.2/
  5. go1.10.3/
  6. go1.10.4/
  7. go1.10/
  8. go1.10beta1/
  9. go1.10beta2/
  10. go1.10rc1/
  11. go1.10rc2/
  12. go1.11.1/
  13. go1.11/
  14. go1.11beta1/
  15. go1.11beta2/
  16. go1.11beta3/
  17. go1.11rc1/
  18. go1.11rc2/
  19. go1.8.1/
  20. go1.8.2/
  21. go1.8.3/
  22. go1.8.4/
  23. go1.8.5/
  24. go1.8.6/
  25. go1.8.7/
  26. go1.8/
  27. go1.8beta1/
  28. go1.8beta2/
  29. go1.8rc1/
  30. go1.8rc2/
  31. go1.8rc3/
  32. go1.9.1/
  33. go1.9.2/
  34. go1.9.3/
  35. go1.9.4/
  36. go1.9.5/
  37. go1.9.6/
  38. go1.9.7/
  39. go1.9/
  40. go1.9beta1/
  41. go1.9beta2/
  42. go1.9rc1/
  43. go1.9rc2/
  44. internal/
README.md

golang.org/dl

This repository holds the Go wrapper programs that run specific versions of Go, such as go get golang.org/dl/go1.10.3.

Report Issues / Send Patches

This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html. The main issue tracker for the net repository is located at https://github.com/golang/go/issues. Prefix your issue with “dl:” in the subject line, so it is easy to find.