Skip to content

Commit

Permalink
cig: remove godep dependency
Browse files Browse the repository at this point in the history
This relies on a patch c/o @Loyalsoldier:

    stevenjack/cig#44
  • Loading branch information
carlocab committed Dec 12, 2020
1 parent f4b21c6 commit 80668ea
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions Formula/cig.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,17 @@ class Cig < Formula
end

depends_on "go" => :build
depends_on "godep" => :build

# Patch to remove godep dependency.
# Remove when the following PR is merged into release:
# https://github.com/stevenjack/cig/pull/44
patch do
url "https://github.com/stevenjack/cig/compare/2d834ee..f0e78f0.patch?full_index"
sha256 "3aa14ecfa057ec6aba08d6be3ea0015d9df550b4ede1c3d4eb76bdc441a59a47"
end

def install
ENV["GOPATH"] = buildpath
(buildpath/"src/github.com/stevenjack").mkpath
ln_s buildpath, "src/github.com/stevenjack/cig"
system "godep", "restore"
system "go", "build", "-o", bin/"cig"
system "go", "build", *std_go_args
end

test do
Expand Down

0 comments on commit 80668ea

Please sign in to comment.