Skip to content

Commit c49fe30

Browse files
committed
MY: go: 1.16
Homebrew#71289
1 parent 3e0250e commit c49fe30

File tree

2 files changed

+6
-27
lines changed

2 files changed

+6
-27
lines changed
File renamed without changes.

Formula/go.rb

Lines changed: 6 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,12 @@ class Go < Formula
44
license "BSD-3-Clause"
55

66
stable do
7-
if Hardware::CPU.arm?
8-
url "https://golang.org/dl/go1.16rc1.src.tar.gz"
9-
sha256 "6a33569f9d0d21db31614086cc2a4f0fbc683b41c1c53fb512a1341ce5763ff5"
10-
version "1.15.8"
11-
else
12-
url "https://golang.org/dl/go1.15.8.src.tar.gz"
13-
mirror "https://fossies.org/linux/misc/go1.15.8.src.tar.gz"
14-
sha256 "540c0ab7781084d124991321ed1458e479982de94454a98afab6acadf38497c2"
15-
end
7+
url "https://golang.org/dl/go1.16.src.tar.gz"
8+
mirror "https://fossies.org/linux/misc/go1.16.src.tar.gz"
9+
sha256 "7688063d55656105898f323d90a79a39c378d86fe89ae192eb3b7fc46347c95a"
1610

17-
go_version = version.major_minor
1811
resource "gotools" do
19-
url "https://go.googlesource.com/tools.git",
20-
branch: "release-branch.go#{go_version}"
12+
url "https://go.googlesource.com/tools.git"
2113
end
2214
end
2315

@@ -45,8 +37,8 @@ class Go < Formula
4537
resource "gobootstrap" do
4638
on_macos do
4739
if Hardware::CPU.arm?
48-
url "https://storage.googleapis.com/golang/go1.16beta1.darwin-arm64.tar.gz"
49-
sha256 "fd57f47987bb330fd9b438e7b4c8941b63c3807366602d99c1d99e0122ec62f1"
40+
url "https://storage.googleapis.com/golang/go1.16.darwin-arm64.tar.gz"
41+
sha256 "4dac57c00168d30bbd02d95131d5de9ca88e04f2c5a29a404576f30ae9b54810"
5042
else
5143
url "https://storage.googleapis.com/golang/go1.7.darwin-amd64.tar.gz"
5244
sha256 "51d905e0b43b3d0ed41aaf23e19001ab4bc3f96c3ca134b48f7892485fc52961"
@@ -86,19 +78,6 @@ def install
8678
bin.install_symlink libexec/"bin/godoc"
8779
end
8880

89-
def caveats
90-
s = ""
91-
92-
if Hardware::CPU.arm?
93-
s += <<~EOS
94-
This is a release candidate version of the Go compiler for Apple Silicon
95-
(Go 1.16rc1).
96-
EOS
97-
end
98-
99-
s
100-
end
101-
10281
test do
10382
(testpath/"hello.go").write <<~EOS
10483
package main

0 commit comments

Comments
 (0)