Skip to content

Commit

Permalink
datree: test build patch
Browse files Browse the repository at this point in the history
Signed-off-by: Rui Chen <rui@chenrui.dev>
  • Loading branch information
chenrui333 committed Sep 3, 2021
1 parent 48d71ba commit 0755e21
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions Formula/datree.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0755e21

Please sign in to comment.