elvish: fix install with vendored golang library

Signed-off-by: Shengjing Zhu <i@zhsj.me>

Closes #16315.

Signed-off-by: FX Coudert <fxcoudert@gmail.com>
This commit is contained in:
Shengjing Zhu 2017-08-02 18:52:11 +08:00 committed by FX Coudert
parent 49545eae3d
commit b020fec855

View file

@ -16,9 +16,10 @@ class Elvish < Formula
def install
ENV["GOPATH"] = buildpath
(buildpath/"src/github.com/elves").mkpath
ln_sf buildpath, buildpath/"src/github.com/elves/elvish"
system "go", "build", "-o", bin/"elvish"
(buildpath/"src/github.com/elves/elvish").install buildpath.children
cd "src/github.com/elves/elvish" do
system "go", "build", "-o", bin/"elvish"
end
end
test do