From 5960d7facbd8b9ff664121bf3c8ea592efbaed8b Mon Sep 17 00:00:00 2001 From: Bardi Harborow Date: Thu, 2 May 2019 00:50:40 +1000 Subject: [PATCH] Replace MacOS.prefer_64_bit with Hardware::CPU.is_64_bit. (#134) --- HomebrewFormula/coredns.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HomebrewFormula/coredns.rb b/HomebrewFormula/coredns.rb index 7c3062e..2cf69ae 100644 --- a/HomebrewFormula/coredns.rb +++ b/HomebrewFormula/coredns.rb @@ -46,7 +46,7 @@ class Coredns < Formula def install ENV["GOPATH"] = buildpath ENV["GOOS"] = "darwin" - ENV["GOARCH"] = MacOS.prefer_64_bit? ? "amd64" : "386" + ENV["GOARCH"] = Hardware::CPU.is_64_bit? ? "amd64" : "386" (buildpath/"src/github.com/coredns/coredns").install buildpath.children Language::Go.stage_deps resources, buildpath/"src"