Skip to content

Commit

Permalink
gitversion: downgrade, use mono.
Browse files Browse the repository at this point in the history
The current version uses a macOS binary which is forbidden in
homebrew/core.

This will likely fail CI due to being a downgrade but we don't want to
intentionally downgrade anyone.
  • Loading branch information
MikeMcQuaid committed Apr 14, 2020
1 parent 8136032 commit 5d08c09
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Formula/gitversion.rb
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
class Gitversion < Formula
desc "Easy semantic versioning for projects using Git"
homepage "https://github.com/GitTools/GitVersion"
url "https://github.com/GitTools/GitVersion/releases/download/5.2.4/gitversion-osx-5.2.4.tar.gz"
sha256 "a06ae6cf8062a2b26b858feab01fceb94951627cc732f7422472785ff3ccde4c"
url "https://github.com/GitTools/GitVersion/releases/download/5.0.1/GitVersion-bin-fullfx-v5.0.1.zip"
sha256 "9b543d3e42e0d5e6fab0b44553cb6bbbb0e31431030ef761fc1a50c845fd166a"

bottle :unneeded

depends_on "mono"

uses_from_macos "icu4c"

def install
libexec.install Dir["*"]
(bin/"gitversion").write <<~EOS
#!/bin/sh
exec "#{libexec}/GitVersion" "$@"
exec "#{Formula["mono"].opt_bin}/mono" "#{libexec}/GitVersion.exe" "$@"
EOS
end

Expand Down

0 comments on commit 5d08c09

Please sign in to comment.