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.
2 parents a3eb9ad + cc261ef commit f3d41e1Copy full SHA for f3d41e1
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