`go build` will not work. Building gh requires 2 further dependencies:
- https://github.com/kr/godep
- https://github.com/jingweno/gotask

Figuring out if it's easier to build both dependencies, or write a build
file.


On Sun, Dec 1, 2013 at 11:48 PM, Mike McQuaid <notifications@github.com>wrote:

> In Library/Formula/gh.rb:
>
> > @@ -0,0 +1,23 @@
> > +require "formula"
> > +
> > +class Gh < Formula
> > +  homepage "https://github.com/jingweno/gh"
> > +  head "https://github.com/jingweno/gh.git"
> > +  url "https://github.com/jingweno/gh/archive/v0.25.1.tar.gz"
> > +  sha1 '02a2010e07c859d361ceb47700ec2a8ee07a42a2'
> > +  depends_on "go" => :build
> > +  depends_on :hg => :build
> > +
> > +  def install
> > +    ENV["GOPATH"] = buildpath
> > +    system 'go get github.com/jingweno/gh'
>
> Use go build instead.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/mxcl/homebrew/pull/24797/files#r8014094>
> .
>