From f0feeaf9f31e6005c42c83baa4928a43ade49cd4 Mon Sep 17 00:00:00 2001 From: Misty De Meo Date: Wed, 19 Jun 2019 12:56:18 -0700 Subject: [PATCH] go@1.9: fix generating malformed binaries --- Formula/go@1.9.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Formula/go@1.9.rb b/Formula/go@1.9.rb index 82f7926b3a..1b4cab082c 100644 --- a/Formula/go@1.9.rb +++ b/Formula/go@1.9.rb @@ -33,6 +33,14 @@ class GoAT19 < Formula sha256 "771b67df44e3d5d5d7c01ea4a0d1693032bc880ea4f16cf82c1bacb42bfd9b10" end + # Prevents Go from building malformed binaries. Fixed upstream, should + # be in a future release. + # https://github.com/golang/go/issues/32673 + patch do + url "https://github.com/golang/go/commit/26954bde4443c4bfbfe7608f35584b6b810f3f2c.patch?full_index=1" + sha256 "25a361bd4aa1155be06e2239c1974aa9c59f971210f19e16a3b7b576b9d4f677" + end + def install (buildpath/"gobootstrap").install resource("gobootstrap") ENV["GOROOT_BOOTSTRAP"] = buildpath/"gobootstrap"