Skip to content

Commit

Permalink
Merge pull request #178586 from Homebrew/elm-fix
Browse files Browse the repository at this point in the history
elm: add constraint to fix build
  • Loading branch information
chenrui333 authored Jul 26, 2024
2 parents 910465b + a6e9e7a commit 7194b74
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Formula/e/elm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,13 @@ class Elm < Formula
end

def install
# Work around build failure due to incompatibility with newer `tls` package
# Ref: https://github.com/elm/compiler/pull/2325
args = ["--constraint=tls<2"]
odie "Check if `tls` constraint can be removed!" if version > "0.19.1"

system "cabal", "v2-update"
system "cabal", "v2-install", *std_cabal_v2_args
system "cabal", "v2-install", *args, *std_cabal_v2_args
end

test do
Expand Down

0 comments on commit 7194b74

Please sign in to comment.