diff options
| author | Jonathon Klobucar | 2013-10-18 19:58:10 -0700 |
|---|---|---|
| committer | Mike McQuaid | 2013-10-19 09:18:46 +0100 |
| commit | 1ef6edd66c8658c601116c92e09d612669cc833a (patch) | |
| tree | 36f82bc94bbddce4440616dd898bfee002694103 /Library/Formula | |
| parent | 38f8d17cb3c056a596c739bea341a4ac5a986e75 (diff) | |
| download | homebrew-1ef6edd66c8658c601116c92e09d612669cc833a.tar.bz2 | |
go 1.2rc2 (devel)
Update documentation and don't check with go vet. That is now in
go.tools starting in go 1.2. Make a check that go is working by using
`go fmt` and running a smal go program.
Closes #23359.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/go.rb | 28 |
1 files changed, 21 insertions, 7 deletions
diff --git a/Library/Formula/go.rb b/Library/Formula/go.rb index ea70d163d..2996be2c3 100644 --- a/Library/Formula/go.rb +++ b/Library/Formula/go.rb @@ -18,9 +18,9 @@ class Go < Formula option 'without-cgo', "Build without cgo" devel do - url 'https://go.googlecode.com/files/go1.2rc1.src.tar.gz' - version '1.2rc1' - sha1 '9f39106e06f552e9bf6d15d201c4663c051d4f89' + url 'https://go.googlecode.com/files/go1.2rc2.src.tar.gz' + version '1.2rc2' + sha1 '1fc3b39431551ffa69035ccffea18f4328dc2e8c' end if build.with? 'cgo' and not build.devel? @@ -87,7 +87,8 @@ class Go < Formula bin.install_symlink Dir["#{libexec}/bin/*"] end - def caveats; <<-EOS.undent + def caveats + changelog = <<-EOS.undent The go get command no longer allows $GOROOT as the default destination in Go 1.1 when downloading package source. To use the go get command, a valid $GOPATH is now required. @@ -97,6 +98,19 @@ class Go < Formula More information here: http://golang.org/doc/code.html#GOPATH EOS + + if build.devel? + changelog += <<-EOS.undent + + In go 1.2 go vet and go doc are now part of the go.tools sub repo. + see: http://tip.golang.org/doc/go1.2#go_tools_godoc + + To get go vet and go doc run: + $ go get code.google.com/p/go.tools/cmd/godoc + $ go get code.google.com/p/go.tools/cmd/vet + EOS + end + return changelog end test do @@ -109,9 +123,9 @@ class Go < Formula fmt.Println("Hello World") } EOS - # Run go vet check for no errors then run the program. - # This is a a bare minimum of go working as it uses vet, build, and run. - system "#{bin}/go", "vet", "hello.go" + # Run go fmt check for no errors then run the program. + # This is a a bare minimum of go working as it uses fmt, build, and run. + system "#{bin}/go", "fmt", "hello.go" assert_equal "Hello World\n", `#{bin}/go run hello.go` end end |
