We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1c21ab commit cc261efCopy full SHA for cc261ef
Formula/g/grafana-alloy.rb
@@ -25,6 +25,13 @@ class GrafanaAlloy < Formula
25
conflicts_with "alloy-analyzer", because: "both install `alloy` binaries"
26
27
def install
28
+ # Workaround to avoid patchelf corruption when cgo is required (for godror)
29
+ if OS.linux? && Hardware::CPU.arch == :arm64
30
+ ENV["CGO_ENABLED"] = "1"
31
+ ENV["GO_EXTLINK_ENABLED"] = "1"
32
+ ENV.append "GOFLAGS", "-buildmode=pie"
33
+ end
34
+
35
ldflags = %W[
36
-s -w
37
-X github.com/grafana/alloy/internal/build.Branch=HEAD
0 commit comments