Skip to content

Commit

Permalink
Merge pull request #182791 from Homebrew/gollum-workaround
Browse files Browse the repository at this point in the history
gollum: work around missing dependency repo
  • Loading branch information
chenrui333 authored Aug 29, 2024
2 parents ec63740 + 0f0805e commit e435ce9
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 e435ce9

Please sign in to comment.