From a6e9e7abf06e1adb0f225f693ab42e6d05bd23af Mon Sep 17 00:00:00 2001 From: Michael Cho Date: Thu, 25 Jul 2024 17:44:01 -0400 Subject: [PATCH] elm: add constraint to fix build --- Formula/e/elm.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Formula/e/elm.rb b/Formula/e/elm.rb index 5446be20df98f..7434d5eabf079 100644 --- a/Formula/e/elm.rb +++ b/Formula/e/elm.rb @@ -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