Skip to content

Commit

Permalink
Merge pull request #141159 from kevinburkesegment/logcli-build-arguments
Browse files Browse the repository at this point in the history
logcli: compile with correct build arguments
  • Loading branch information
BrewTestBot authored Sep 2, 2023
2 parents 7d14a67 + acbb483 commit fd1198a
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions Formula/l/logcli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,14 @@ class Logcli < Formula
end

bottle do
sha256 cellar: :any_skip_relocation, arm64_ventura: "09487d11b74fe3c565641816eb83803e5cd6fbdfb38059eccd5938a8013819ff"
sha256 cellar: :any_skip_relocation, arm64_monterey: "09487d11b74fe3c565641816eb83803e5cd6fbdfb38059eccd5938a8013819ff"
sha256 cellar: :any_skip_relocation, arm64_big_sur: "09487d11b74fe3c565641816eb83803e5cd6fbdfb38059eccd5938a8013819ff"
sha256 cellar: :any_skip_relocation, ventura: "a07fc4c50deaed9cd3cb98ce6069f2aac872f7909652c7684483a66b846fff63"
sha256 cellar: :any_skip_relocation, monterey: "a07fc4c50deaed9cd3cb98ce6069f2aac872f7909652c7684483a66b846fff63"
sha256 cellar: :any_skip_relocation, big_sur: "a07fc4c50deaed9cd3cb98ce6069f2aac872f7909652c7684483a66b846fff63"
sha256 cellar: :any_skip_relocation, x86_64_linux: "e6e91d2fbfc03c681a92e092102fe56fafbb99a42732b3b7504de0909a2f5be1"
rebuild 1
sha256 cellar: :any_skip_relocation, arm64_ventura: "c33f86bc861262e3670115f9fd68f4c9e5bb489a8b1f5f846d04578cf1a59eef"
sha256 cellar: :any_skip_relocation, arm64_monterey: "c02d4256f2d6c79bf62c827c2db2de2f766b25a9f59194f500aa934ade31f764"
sha256 cellar: :any_skip_relocation, arm64_big_sur: "9761e403d69b4db947d30f96eb05a01c6b958338fecdfa041c6d37260e8cdc7e"
sha256 cellar: :any_skip_relocation, ventura: "d7eb39012d297e5ee3f5b9df1f19ed0985ce2f945a30bb5fc703f2440db22808"
sha256 cellar: :any_skip_relocation, monterey: "8a755dc3eef8ab8980f6939ba8ce5941bc99c36fa2077b5aefa1f76566ecb5b7"
sha256 cellar: :any_skip_relocation, big_sur: "0d214b86f0cf8bafb972a648424404ceb98289d1939e00d33f2664a17530ee78"
sha256 cellar: :any_skip_relocation, x86_64_linux: "0ed3d4aafd5a84770e582f4eb022e22b5fb3d28b964dc3049b1fa57dbece4e47"
end

depends_on "go" => :build
Expand All @@ -29,7 +30,15 @@ class Logcli < Formula
end

def install
system "go", "build", *std_go_args(ldflags: "-s -w"), "./cmd/logcli"
ldflags = %W[
-s -w
-X github.com/grafana/loki/pkg/util/build.Branch=main
-X github.com/grafana/loki/pkg/util/build.Version=#{version}
-X github.com/grafana/loki/pkg/util/build.BuildUser=homebrew
-X github.com/grafana/loki/pkg/util/build.BuildDate=#{time.iso8601}
]

system "go", "build", *std_go_args(ldflags: ldflags), "./cmd/logcli"
end

test do
Expand Down

0 comments on commit fd1198a

Please sign in to comment.