Skip to content

Commit

Permalink
kics 2.1.0
Browse files Browse the repository at this point in the history
kics: update build

Signed-off-by: Rui Chen <rui@chenrui.dev>
  • Loading branch information
BrewTestBot authored and chenrui333 committed Jun 12, 2024
1 parent 206cdb5 commit a588cf7
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions Formula/k/kics.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
class Kics < Formula
desc "Detect vulnerabilities, compliance issues, and misconfigurations"
homepage "https://kics.io/"
url "https://github.com/Checkmarx/kics/archive/refs/tags/v2.0.1.tar.gz"
sha256 "7c4b5c5e2d696db4edf5a319aad39c8108156c2832fbf2c4429c92c6ee2ada2f"
url "https://github.com/Checkmarx/kics/archive/refs/tags/v2.1.0.tar.gz"
sha256 "097072c07616ab4dbcaedb91e8b1591da20fa599323c1b56657cf4e677d6dfa3"
license "Apache-2.0"
head "https://github.com/Checkmarx/kics.git", branch: "master"

Expand All @@ -24,10 +24,7 @@ class Kics < Formula
depends_on "go" => :build

def install
ldflags = %W[
-s -w
-X github.com/Checkmarx/kics/internal/constants.Version=#{version}
]
ldflags = "-s -w -X github.com/Checkmarx/kics/v#{version.major}/internal/constants.Version=#{version}"
system "go", "build", *std_go_args(ldflags:), "./cmd/console"

pkgshare.install "assets"
Expand Down

0 comments on commit a588cf7

Please sign in to comment.