gotip: add new command to run latest master build

This command makes it even easier for anyone with a working go compiler
(and git) to test the latest master. This should be particularly handy
when asking users to verify fixes that landed on tip.

gotip manages the git repository, tolerates upstream force pushes, and
makes an attempt not to wipe away local changes in case the user did
work in it.

    $ go get golang.org/dl/gotip
    $ gotip download
    Cloning the go development tree...
    Cloning into '/Users/valsorda/sdk/gotip'...
    remote: Counting objects: 9334, done
    remote: Finding sources: 100% (9334/9334)
    remote: Total 9334 (delta 1244), reused 6116 (delta 1244)
    Receiving objects: 100% (9334/9334), 22.22 MiB | 11.00 MiB/s, done.
    Resolving deltas: 100% (1244/1244), done.
    Checking out files: 100% (8447/8447), done.
    HEAD is now at dc7808d cmd/compile/internal/syntax: remove unused field in (scanner) source
    Building Go cmd/dist using /Users/valsorda/homebrew/Cellar/go/1.11/libexec.
    Building Go toolchain1 using /Users/valsorda/homebrew/Cellar/go/1.11/libexec.
    Building Go bootstrap cmd/go (go_bootstrap) using Go toolchain1.
    Building Go toolchain2 using go_bootstrap and Go toolchain1.
    Building Go toolchain3 using go_bootstrap and Go toolchain2.
    Building packages and commands for darwin/amd64.
    ---
    Installed Go for darwin/amd64 in /Users/valsorda/sdk/gotip
    Installed commands in /Users/valsorda/sdk/gotip/bin
    Success. You may now run 'gotip'!
    $ gotip version
    go version devel +dc7808d Wed Dec 5 23:15:21 2018 +0000 darwin/amd64

Running "gotip download" again will fetch the latest changes and rebuild.

    $ gotip download
    Updating the go development tree...
    remote: Counting objects: 34, done
    remote: Finding sources: 100% (20/20)
    remote: Total 20 (delta 11), reused 20 (delta 11)
    Unpacking objects: 100% (20/20), done.
    From https://go.googlesource.com/go
    dc7808d..fcd6117  master     -> origin/master
    Previous HEAD position was dc7808d cmd/compile/internal/syntax: remove unused field in (scanner) source
    HEAD is now at fcd6117 cmd/internal/objfile: provide consistent output in objdump on ppc64x
    Building Go cmd/dist using /Users/valsorda/homebrew/Cellar/go/1.11/libexec.
    Building Go toolchain1 using /Users/valsorda/homebrew/Cellar/go/1.11/libexec.
    Building Go bootstrap cmd/go (go_bootstrap) using Go toolchain1.
    Building Go toolchain2 using go_bootstrap and Go toolchain1.
    Building Go toolchain3 using go_bootstrap and Go toolchain2.
    Building packages and commands for darwin/amd64.
    ---
    Installed Go for darwin/amd64 in /Users/valsorda/sdk/gotip
    Installed commands in /Users/valsorda/sdk/gotip/bin
    Success. You may now run 'gotip'!

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

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.