Commit Graph
74 Commits
Author SHA1 Message Date
Jonathon Klobucar 1ef6edd66c 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>
2013-10-19 09:18:46 +01:00
Mike McQuaid 686af5aa8e go: fix cgo clang support in devel.
Closes #23001.
Closes #23139.
References #23119.
2013-10-12 21:59:51 +01:00
Mike McQuaid 1400e08094 go: build cgo with clang for devel versions.
Closes #23119.
2013-10-08 08:39:16 +01:00
Mike McQuaid c06d6be63f go: fix --without-cgo description. 2013-09-28 09:04:46 +01:00
Mike McQuaid 6ee4bc3633 go: add bottles.
Closes #22803.
2013-09-27 08:19:19 +01:00
Mike McQuaid 50ce9941e3 go: depend on apple-gcc42 on >=10.8. 2013-09-27 08:17:47 +01:00
Jonathon Klobucar 6ebb2cbcb7 go --devel 1.2RC1
Closes #22720.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-09-22 19:22:43 -07:00
Max Howell a512104056 Sod it.
And with this commit, I lose interest in contributing to Homebrew entirely.

Closes #22609
2013-09-21 14:42:18 -05:00
Adam Vandenberg ec9ccdf8fc go: simplify target list
Remove "opts" and figure out cgo based on os
2013-09-18 21:54:43 -07:00
Adam Vandenberg 743bf42e2e go: install to libexec to keep private headers
Install all files to libexec, including go private headers.
Symlink binaries to bin from there.

Closes #22638.
2013-09-18 21:54:43 -07:00
Misty De Meo a9562366d2 go: upstream patch for clang when cross-compiling
More properly fixes #22610.
2013-09-17 12:43:21 -07:00
Misty De Meo 9e80d57525 go: fails_with :clang when cross-compiling
These fails_with conditions are getting far too complex and probably
should be simplified.

Fixes #22610.
2013-09-17 09:00:48 -07:00
Max Howell 1793401f85 Fix go cross compiler
Sorry for this regression. HEARTS AND HUGS --mxcl

Refs #22505
2013-09-14 14:17:20 -05:00
Max Howell a8123262ad Sorry, I meant to use ENV.compiler 2013-09-02 22:28:06 -05:00
Max Howell 5f5ac7aa5c Go builds with clang, without cgo module 2013-09-02 22:20:38 -05:00
Eric Gravert 68e02fb78d Fixed buildpath typo that was preventing the formula from working correctly.
Closes #21910.

Signed-off-by: Xiyue Deng <manphiz@gmail.com>
2013-08-15 03:13:32 -07:00
Adam Vandenberg cc5e78b55f go: use buildpath 2013-08-14 21:45:57 -07:00
morou a600bca9e9 go: add option for building without cgo
Closes #20960.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-08-14 21:44:18 -07:00
Cheah Chu Yeow d22aa6be5c Go 1.1.2.
Closes #21863.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-08-13 06:30:08 -07:00
Jack Nagel dd0eae4e94 go: fix test 2013-08-10 22:10:53 -05:00
Jack Nagel a856447998 go: cleanup
- remove outdated comment
 - remove pointless ENV cleanup
 - remove dead "allow_fail" code
 - remove superfluous parens in block arguments
 - fix indentation
2013-08-10 22:02:01 -05:00
Jonathan Schleifer 79771f7a1a go: add NetBSD cross-compiler
Closes #20537.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-06-18 07:47:45 -07:00
Daisuke Murase 55c19bd7f8 go 1.1.1
Closes #20456.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-06-14 09:21:24 -07:00
Peter Eisentraut c6f0c50ef0 go: Correct file name for zsh completions
Previously, the completion file was installed as "_go", which by
convention means that it will be loaded by compinit.  But this file
does not have the #compdef tag, so this doesn't work, and nothing in
the file indicates that it is supposed to be used that way.

Therefore, install the file under the original name "go" to indicate
that you need to load it manually (as the comment in the file
suggests).

Closes #18752.
2013-06-09 08:33:58 -07:00
Jack Nagel 4dc3ad4bf5 go: use test assertion 2013-06-08 21:32:24 -05:00
Jonathon Klobucar 150ff590ad go 1.1
Removes the now-outdated devel block.

Also require the use of the correct clang compiler
by default. This change was needed when using
--devel and now needed in stable.

A new caveat has also been added explaining how a
$GOPATH must be set and cannot be the same as
$GOROOT From the 1.1 release notes listed below.
http://golang.org/doc/go1.1#gocmd

Closes #19782.

Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
2013-05-15 16:28:05 -05:00
Jonathon Klobucar 0f5dfc591a go --devel 1.1rc3
Closes #19717.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-05-10 08:40:11 -07:00
Jonathon Klobucar e040dba290 go devel 1.1rc2
Closes #19648.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-05-07 07:46:35 -07:00
Adam Vandenberg c150b7ed85 use bash/zsh path helpers 2013-05-03 11:03:42 -07:00
Jonathon Klobucar 55a45badf7 go --devel 1.1rc1
Closes #19562.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-05-01 20:18:14 -07:00
Brett Koonce cd0d3b8636 go devel 1.1 beta2
Closes #19053.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-04-08 15:05:49 -05:00
Jonathon Klobucar 7a800095ca go --devel 1.1 beta
Closes #18969.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-04-04 12:04:56 -07:00
Jack Nagel bd7a5b60a7 go: fix quoting in test 2013-03-26 00:02:30 -05:00
Jack Nagel 5ddd40b844 Switch compilers when no build is specified
Given the current state of OS X compilers, the original fails_with
behavior is becoming less useful, mostly resulting in build failures
each time the compiler is updated. So make the following changes:

When a build is specified, we retain the old behavior: switch compilers
if the available compiler is <= the build, don't switch if it is > the
build.

When no build is specified, unconditionally switch compilers, and don't
output the advice message. This allows us to mark formulae as
perpetually failing, avoiding the need to update formulae each time a
new compiler build is made available.

As a bonus, this makes the logic much easier to reason about.

Closes #18175.
2013-03-12 13:55:15 -05:00
Jacob Appelbaum 35b0414670 go: fix --HEAD build and use https for HEAD hg.
Closes #18030.
Closes #17913.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-02-23 08:00:27 +00:00
Joe Shaw 92850b300c go: host platform must always be the last one built
Each cross-compiler step also rebuilds the host platform.  If
ENABLE_CGO=0 in a later build step, important OS routines (like looking
up x509 certificates in the keychain) are not implemented even for the
host platform.

Closes #17758.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-02-11 20:48:23 -08:00
Simon Menke cda2c33476 go: disable the plan9 cross-compiler
Closes #16242.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-12-14 12:59:09 -08:00
Jack Nagel 0ee50d01f6 go: call write on the correct type
Fixes #16507.
2012-12-10 14:52:42 -06:00
Samuel Cochran 557827626f go: Install zsh completions
Closes #16364.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-12-02 20:25:29 -08:00
Simon Menke 75e0d30736 go: allow building the cross-compilers
When the `--cross-compile` option is used the following runtimes will be build:

- darwin  (386, amd64; with CGO)
- linux   (386, amd64, arm)
- freebsd (386, amd64)
- openbsd (386, amd64)
- plan9   (386)
- windows (386, amd64)

Closes #12547.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-11-25 08:04:50 -08:00
Timothée Peignier 6fea940929 go 1.0.3
Closes #15086.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-09-24 12:30:41 -07:00
Adam Vandenberg 95d2904f21 go: use new dsl 2012-09-03 12:31:06 -07:00
tamird 11530d2662 go: install bash completion
Closes #14287.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-08-22 20:56:01 -07:00
Ealden Esto E. Escanan 475cf02938 Go 1.0.2
Signed-off-by: Ealden Esto E. Escanan <ealden@gmail.com>
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-06-14 21:35:18 -07:00
Jack Nagel f7adda3893 go: don't install conflicting header files
Closes #12457.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-05-29 14:08:46 -05:00
Jack Nagel a82d5d9e64 go: use prefix instead of Pathname.pwd
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-05-08 01:15:12 -05:00
Pascal Bertrand be5de13da6 go 1.0.1
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-04-28 09:32:43 -07:00
Adam Vandenberg 7394ce6866 Go: remove unofficial Git mirror 2012-04-16 19:10:52 -07:00
Pascal Bertrand 0342d4a028 go 1
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-04-01 13:35:26 -07:00
Bart Leusink 112e155738 go: fix-up HEAD install 2012-02-25 22:52:57 -08:00