Skip to content

Commit 2cff232

Browse files
committed
go: share gobootstrap resource
1 parent 6ce5184 commit 2cff232

File tree

1 file changed

+8
-16
lines changed

1 file changed

+8
-16
lines changed

Formula/go.rb

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,6 @@ class Go < Formula
88
version "1.7"
99
sha256 "72680c16ba0891fcf2ccf46d0f809e4ecf47bbf889f5d884ccb54c5e9a17e1c0"
1010

11-
# Should use the last stable binary release to bootstrap.
12-
# More explicitly, leave this at 1.7 when 1.7.1 is released.
13-
resource "gobootstrap" do
14-
url "https://storage.googleapis.com/golang/go1.7.darwin-amd64.tar.gz"
15-
version "1.7"
16-
sha256 "51d905e0b43b3d0ed41aaf23e19001ab4bc3f96c3ca134b48f7892485fc52961"
17-
end
18-
1911
go_version = "1.7"
2012
resource "gotools" do
2113
url "https://go.googlesource.com/tools.git",
@@ -34,14 +26,6 @@ class Go < Formula
3426
head do
3527
url "https://github.com/golang/go.git"
3628

37-
# Should use the last stable binary release to bootstrap.
38-
# More explicitly, leave this at 1.7 when 1.7.1 is released.
39-
resource "gobootstrap" do
40-
url "https://storage.googleapis.com/golang/go1.7.darwin-amd64.tar.gz"
41-
version "1.7"
42-
sha256 "51d905e0b43b3d0ed41aaf23e19001ab4bc3f96c3ca134b48f7892485fc52961"
43-
end
44-
4529
resource "gotools" do
4630
url "https://go.googlesource.com/tools.git"
4731
end
@@ -53,6 +37,14 @@ class Go < Formula
5337

5438
depends_on :macos => :mountain_lion
5539

40+
# Should use the last stable binary release to bootstrap.
41+
# More explicitly, leave this at 1.7 when 1.7.1 is released.
42+
resource "gobootstrap" do
43+
url "https://storage.googleapis.com/golang/go1.7.darwin-amd64.tar.gz"
44+
version "1.7"
45+
sha256 "51d905e0b43b3d0ed41aaf23e19001ab4bc3f96c3ca134b48f7892485fc52961"
46+
end
47+
5648
def install
5749
(buildpath/"gobootstrap").install resource("gobootstrap")
5850
ENV["GOROOT_BOOTSTRAP"] = buildpath/"gobootstrap"

0 commit comments

Comments
 (0)