11class Loki < Formula
22 desc "Horizontally-scalable, highly-available log aggregation system"
33 homepage "https://grafana.com/loki"
4- url "https://github.com/grafana/loki/archive/refs/tags/v3.5.0 .tar.gz"
5- sha256 "584d7f45cc85f884e8eb7e8ed8c35eacd2157c6edd0f2a2d0161ba39d22b86ae "
4+ url "https://github.com/grafana/loki/archive/refs/tags/v3.5.1 .tar.gz"
5+ sha256 "d360561de7ac97d05a6fc1dc0ca73d93c11a86234783dfd9ae92033300caabd7 "
66 license "AGPL-3.0-only"
77 head "https://github.com/grafana/loki.git" , branch : "main"
88
@@ -12,12 +12,12 @@ class Loki < Formula
1212 end
1313
1414 bottle do
15- sha256 cellar : :any_skip_relocation , arm64_sequoia : "b472639552be01c08671d53b3f0329a974d6569b6ceb84c97843527fc588bb7d "
16- sha256 cellar : :any_skip_relocation , arm64_sonoma : "8b31a16d28e23ddf58d161137f9e57df15cad81871e872ad0deefbcd4a8cff41 "
17- sha256 cellar : :any_skip_relocation , arm64_ventura : "9b3b614e4c1b48be24de3fc96d2961dc3fe8dd5276a5f8dc6f1b855455e40175 "
18- sha256 cellar : :any_skip_relocation , sonoma : "cd2314b675908d900ee612474c0bc86ccfe83231a718ef89e90683f615e33ced "
19- sha256 cellar : :any_skip_relocation , ventura : "1bed2c651792241aae177908aedb871ee72e64acefa38dc0c694fb317e7a2f49 "
20- sha256 cellar : :any_skip_relocation , x86_64_linux : "43e36493663cf7c83661e26883b5e74df898313b988c9de28b770eddd09566fd "
15+ sha256 cellar : :any_skip_relocation , arm64_sequoia : "79d76962413f065f9e1d9a9eb5afb25f3c03fc3a4cf6145cf22789b230e01ab4 "
16+ sha256 cellar : :any_skip_relocation , arm64_sonoma : "511238d11ba14eb2fb571f017780a3e15c711607190ddb8a6cde6de338c81a06 "
17+ sha256 cellar : :any_skip_relocation , arm64_ventura : "c09f1684a1cf09698251550ee42202a33d9afc18537f330f83eb78be38a04f63 "
18+ sha256 cellar : :any_skip_relocation , sonoma : "b1d7b27e0684968299c4dcc0a2bd263974d02c27156c99b11a8533dd4048fd1f "
19+ sha256 cellar : :any_skip_relocation , ventura : "24fc02da749458f95bfe6ea226b2d1ed1eccf00f912c4a84bade4424fc9b9130 "
20+ sha256 cellar : :any_skip_relocation , x86_64_linux : "6d4daf5f49d2a1d30173f2ef89b1908fb97bfc7cf0a13f8d63db5c5634aac768 "
2121 end
2222
2323 depends_on "go" => :build
@@ -37,6 +37,13 @@ class Loki < Formula
3737 sha256 "4e2925424bcd7a093f4986d3005c888b98edcdae82b71ec4d71b957f4a9cbcfb"
3838 end
3939
40+ # Fix to link: duplicated definition of symbol dlopen
41+ # PR ref: https://github.com/grafana/loki/pull/17807
42+ patch do
43+ url "https://raw.githubusercontent.com/Homebrew/formula-patches/f49c120b0918dd76de81af961a1041a29d080ff0/loki/loki-3.5.1-purego.patch"
44+ sha256 "fbbbaea8e2069ef0a8fc721f592c48bb50f1224d7eff94afe87dfb184692a9b4"
45+ end
46+
4047 def install
4148 cd "cmd/loki" do
4249 system "go" , "build" , *std_go_args ( ldflags : "-s -w" )
0 commit comments