Skip to content

Commit

Permalink
gollum: work around missing dependency repo
Browse files Browse the repository at this point in the history
  • Loading branch information
cho-m committed Aug 28, 2024
1 parent bc9c99f commit 0f0805e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Formula/g/gollum.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,16 @@ class Gollum < Formula
depends_on "go" => :build

def install
# Work around https://github.com/trivago/gollum/issues/265
mod = "github.com/CrowdStrike/go-metrics-prometheus"
(buildpath/"vendor/#{mod}/go.mod").write <<~EOS
module #{mod}
EOS
(buildpath/"go.work").write <<~EOS
use .
replace #{mod} => ./vendor/#{mod}
EOS

system "go", "build", "-mod=readonly", *std_go_args(ldflags: "-s -w -X gollum/core.versionString=#{version}")
end

Expand Down

0 comments on commit 0f0805e

Please sign in to comment.