22
33class Scw < Formula
44 homepage "https://github.com/scaleway/scaleway-cli"
5- url "https://github.com/scaleway/scaleway-cli/archive/v1.0 .0.tar.gz"
6- sha256 "7a674320bc3298bf50dd2b50a9312c5baa159d5c2bf6f9abae539c9fc931fdce "
5+ url "https://github.com/scaleway/scaleway-cli/archive/v1.1 .0.tar.gz"
6+ sha256 "571146c067da9d3f411fabd24adb08f409f913e2237d80233a71655598b32a37 "
77
88 head "https://github.com/scaleway/scaleway-cli.git"
99
1010 depends_on "go" => :build
11+ depends_on "hg" => :build
1112
1213 go_resource "github.com/tools/godep" do
1314 url "https://github.com/tools/godep.git" , :revision => "58d90f262c13357d3203e67a33c6f7a9382f9223"
@@ -21,23 +22,20 @@ class Scw < Formula
2122 url "https://github.com/golang/tools.git" , :revision => "473fd854f8276c0b22f17fb458aa8f1a0e2cf5f5"
2223 end
2324
24- # go_resource "golang.org/x/crypto" do
25- # url "https://github.com/golang/crypto.git", :revision => "8b27f58b78dbd60e9a26b60b0d908ea642974b6d"
26- # end
25+ go_resource "golang.org/x/crypto" do
26+ url "https://github.com/golang/crypto.git" , :revision => "8b27f58b78dbd60e9a26b60b0d908ea642974b6d"
27+ end
2728
28- # go_resource "github.com/scaleway/scaleway-cli" do
29- # url "https://github.com/scaleway/scaleway-cli.git", :revision => "799e3bcdd7c72fdbb5d6dcf65f99654fc0fffc0b "
30- # end
29+ go_resource "github.com/scaleway/scaleway-cli" do
30+ url "https://github.com/scaleway/scaleway-cli.git" , :revision => "49587ef360980cd28e7e0eac30806fb66372f2ed "
31+ end
3132
3233
3334 def install
3435 ENV [ "GOPATH" ] = buildpath
3536 ENV [ "CGO_ENABLED" ] = "0"
3637 ENV . prepend_create_path "PATH" , buildpath /"bin"
3738
38- #mkdir_p buildpath/"Godeps/_workspace/src/github.com/scaleway"
39- #ln_s buildpath, buildpath/"Godeps/_workspace/src/github.com/scaleway/scaleway-cli"
40-
4139 mkdir_p buildpath /"src/github.com/scaleway"
4240 ln_s buildpath , buildpath /"src/github.com/scaleway/scaleway-cli"
4341 Language ::Go . stage_deps resources , buildpath /"src"
@@ -57,7 +55,7 @@ def install
5755
5856 test do
5957 output = shell_output ( bin /"scw version" )
60- assert output . include? "Client version: v1.0 .0"
61- assert output . include? "Git commit (client): 799e3bcdd7c72fdbb5d6dcf65f99654fc0fffc0b "
58+ assert output . include? "Client version: v1.1 .0"
59+ assert output . include? "Git commit (client): 49587ef360980cd28e7e0eac30806fb66372f2ed "
6260 end
6361end
0 commit comments