Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Commit

Permalink
jfrog-cli-go: vendor go resources
Browse files Browse the repository at this point in the history
Closes #50263.

Signed-off-by: Dominyk Tiller <[email protected]>
  • Loading branch information
DomT4 committed Mar 19, 2016
1 parent bb39849 commit cfc9455
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion Library/Formula/jfrog-cli-go.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
require "language/go"

class JfrogCliGo < Formula
desc "command-line interface for Jfrog Artifactory and Bintray"
homepage "https://github.com/JFrogDev/jfrog-cli-go"
Expand All @@ -13,9 +15,17 @@ class JfrogCliGo < Formula

depends_on "go" => :build

go_resource "golang.org/x/crypto" do
url "https://go.googlesource.com/crypto.git",
:revision => "c197bcf24cde29d3f73c7b4ac6fd41f4384e8af6"
end

def install
ENV["GOPATH"] = buildpath
system "go", "get", "github.com/jfrogdev/jfrog-cli-go/..."
(buildpath/"src/github.com/JFrogDev/").mkpath
ln_sf buildpath, buildpath/"src/github.com/JFrogDev/jfrog-cli-go"
Language::Go.stage_deps resources, buildpath/"src"

system "go", "build", "-o", "#{bin}/jfrog", "github.com/jfrogdev/jfrog-cli-go/jfrog"
end

Expand Down

0 comments on commit cfc9455

Please sign in to comment.