From 0755e2168546c492ea955e7fa42f2018c975194d Mon Sep 17 00:00:00 2001 From: Rui Chen Date: Thu, 2 Sep 2021 23:05:31 -0400 Subject: [PATCH] datree: test build patch Signed-off-by: Rui Chen --- Formula/datree.rb | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/Formula/datree.rb b/Formula/datree.rb index f4bc93ce944b0..cf2aed956f88f 100644 --- a/Formula/datree.rb +++ b/Formula/datree.rb @@ -16,17 +16,13 @@ class Datree < Formula depends_on "go" => :build - # remove in next release - patch do - url "https://github.com/datreeio/datree/commit/c0c5fb1c1c8e5766969ebec09e7cdbbcc0f460f0.patch?full_index=1" - sha256 "8d57c6f92fa0aaba07c79e2fe8312aea29ef40285dcf77d1397ea18cafe3cd5f" - end - def install - system "go", "build", *std_go_args(ldflags: "-s -w -X github.com/datreeio/datree/cmd.CliVersion=#{version}"), "-tags", "main" + system "go", "build", *std_go_args(ldflags: "-X github.com/datreeio/datree/cmd.CliVersion=#{version}"), "-tags", "main" end test do + system bin/"datree" + (testpath/"invalidK8sSchema.yaml").write <<~EOS apiversion: v1 kind: Service