Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dockerize: remove GOPATH #135101

Merged
merged 2 commits into from
Jun 27, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 10 additions & 17 deletions Formula/dockerize.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,32 +6,25 @@ class Dockerize < Formula
license "MIT"

bottle do
sha256 cellar: :any_skip_relocation, arm64_ventura: "c2c5ba6437590435bf77b6b5b90819acddf8ab499944ace62258c3fee7f69070"
sha256 cellar: :any_skip_relocation, arm64_monterey: "c2c5ba6437590435bf77b6b5b90819acddf8ab499944ace62258c3fee7f69070"
sha256 cellar: :any_skip_relocation, arm64_big_sur: "c2c5ba6437590435bf77b6b5b90819acddf8ab499944ace62258c3fee7f69070"
sha256 cellar: :any_skip_relocation, ventura: "e04719aac68f9656ec01acd5add5e521ea013f03f9fce382d7d5c42f20459b7a"
sha256 cellar: :any_skip_relocation, monterey: "e04719aac68f9656ec01acd5add5e521ea013f03f9fce382d7d5c42f20459b7a"
sha256 cellar: :any_skip_relocation, big_sur: "e04719aac68f9656ec01acd5add5e521ea013f03f9fce382d7d5c42f20459b7a"
sha256 cellar: :any_skip_relocation, x86_64_linux: "e2b4bc44d532320f78149b4e7e0c2b223d17a562865b6d777144e698e4ff6071"
rebuild 1
sha256 cellar: :any_skip_relocation, arm64_ventura: "d84f7628bdcc0d8ddc3795f4930ec4ed4e0ad9083237c210051aa3a3977ee1d8"
sha256 cellar: :any_skip_relocation, arm64_monterey: "d84f7628bdcc0d8ddc3795f4930ec4ed4e0ad9083237c210051aa3a3977ee1d8"
sha256 cellar: :any_skip_relocation, arm64_big_sur: "d84f7628bdcc0d8ddc3795f4930ec4ed4e0ad9083237c210051aa3a3977ee1d8"
sha256 cellar: :any_skip_relocation, ventura: "c5a2631a56dd18dbc987d75db932c1cb6a9825acd4799178cb59ffd7ee67c37e"
sha256 cellar: :any_skip_relocation, monterey: "c5a2631a56dd18dbc987d75db932c1cb6a9825acd4799178cb59ffd7ee67c37e"
sha256 cellar: :any_skip_relocation, big_sur: "c5a2631a56dd18dbc987d75db932c1cb6a9825acd4799178cb59ffd7ee67c37e"
sha256 cellar: :any_skip_relocation, x86_64_linux: "1f86e53860af0002e959a41669eaa8093b17fd54d6a310593f10d0438402ed91"
end

depends_on "go" => :build
conflicts_with "powerman-dockerize", because: "powerman-dockerize and dockerize install conflicting executables"

def install
ENV["GOPATH"] = buildpath
ENV["GO111MODULE"] = "auto"
(buildpath/"src/github.com/jwilder/dockerize").install buildpath.children
ENV.append_path "PATH", buildpath/"bin"

cd "src/github.com/jwilder/dockerize" do
system "make", "deps"
system "go", "build", *std_go_args(ldflags: "-s -w -X main.buildVersion=#{version}")
end
system "go", "build", *std_go_args(ldflags: "-s -w -X main.buildVersion=#{version}")
end

test do
assert_match version.to_s, shell_output("#{bin}/dockerize --version")
system "#{bin}/dockerize", "-wait", "https://www.google.com/", "-wait-retry-interval=1s", "-timeout", "5s"
system bin/"dockerize", "-wait", "https://www.google.com/", "-wait-retry-interval=1s", "-timeout", "5s"
end
end