From 4acf0c0775a3fc6ed7e649f8ee99c7a7c6895d44 Mon Sep 17 00:00:00 2001 From: ilovezfs Date: Sat, 18 Feb 2017 00:32:21 -0800 Subject: [PATCH] go: specify tools resource by branch name alone (#10097) If branch name is not specified, git checkout will fail when the tools resource has previously been cached. If branch name is specified, the revision will not be used or validated. So only specify branch name. --- Formula/go.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Formula/go.rb b/Formula/go.rb index 492ad948553..b464c0972e3 100644 --- a/Formula/go.rb +++ b/Formula/go.rb @@ -8,10 +8,10 @@ class Go < Formula version "1.8" sha256 "406865f587b44be7092f206d73fc1de252600b79b3cacc587b74b5ef5c623596" - # revision should be tip of tree commit in release-branch.goX.Y + go_version = version.to_s.split(".")[0..1].join(".") resource "gotools" do url "https://go.googlesource.com/tools.git", - :revision => "5682db0e919ed9cfc6f52ac32e170511a106eb3b" + :branch => "release-branch.go#{go_version}" end end