formula: set GOPATH

So we can cache dependencies and speed up subsequent builds.
This commit is contained in:
Dawid Dziurla 2020-06-20 13:10:47 +02:00
parent 8c21e8b2db
commit f04834f02c
No known key found for this signature in database
GPG Key ID: 7B6D8368172E9B0B

View File

@ -2142,6 +2142,7 @@ class Formula
stage_env[:_JAVA_OPTIONS] =
"#{ENV["_JAVA_OPTIONS"]&.+(" ")}-Duser.home=#{HOMEBREW_CACHE}/java_cache"
stage_env[:GOCACHE] = "#{HOMEBREW_CACHE}/go_cache"
stage_env[:GOPATH] = "#{HOMEBREW_CACHE}/go_mod_cache"
stage_env[:CARGO_HOME] = "#{HOMEBREW_CACHE}/cargo_cache"
stage_env[:CURL_HOME] = ENV["CURL_HOME"] || ENV["HOME"]
end