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:
parent
49545eae3d
commit
b020fec855
1 changed files with 4 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue