Skip to content

Commit

Permalink
formula: set GOPATH
Browse files Browse the repository at this point in the history
So we can cache dependencies and speed up subsequent builds.
  • Loading branch information
dawidd6 committed Jun 23, 2020
1 parent 8c21e8b commit f04834f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Library/Homebrew/formula.rb
Expand Up @@ -2142,6 +2142,7 @@ def stage
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
Expand Down

0 comments on commit f04834f

Please sign in to comment.