Skip to content

Commit

Permalink
feat: allow setting GOPROXY via HOMEBREW_GOPROXY
Browse files Browse the repository at this point in the history
  • Loading branch information
gregnr committed Sep 14, 2023
1 parent 8b8a270 commit 3873f8e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Formula/docker-mac-net-connect.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ class DockerMacNetConnect < Formula
depends_on "go" => :build

def install
if ENV["HOMEBREW_GOPROXY"]

Check failure on line 15 in Formula/docker-mac-net-connect.rb

View workflow job for this annotation

GitHub Actions / test-bot (ubuntu-latest)

Style/IfUnlessModifier: Favor modifier `if` usage when having a single-line body. Another good alternative is the usage of control flow `&&`/`||`.
ENV["GOPROXY"] = ENV["HOMEBREW_GOPROXY"]
end

system "make", "VERSION=#{version}", "build-go"

Check failure on line 20 in Formula/docker-mac-net-connect.rb

View workflow job for this annotation

GitHub Actions / test-bot (ubuntu-latest)

Layout/TrailingWhitespace: Trailing whitespace detected.
bin.install Dir["*"]
Expand Down

0 comments on commit 3873f8e

Please sign in to comment.