Merge pull request #7776 from dawidd6/gopath

formula: set GOPATH
This commit is contained in:
Dawid Dziurla 2020-06-23 18:45:44 +02:00 committed by GitHub
commit 4fa540b259
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2153,6 +2153,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