From 73298565a2ad0f7f8ee4568d95a9da78fd4a58f5 Mon Sep 17 00:00:00 2001 From: Patrick Linnane Date: Sat, 17 Dec 2022 20:41:01 -0800 Subject: [PATCH] haskell-stack 2.9.3 Closes #117867. Signed-off-by: Patrick Linnane Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> --- Formula/haskell-stack.rb | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Formula/haskell-stack.rb b/Formula/haskell-stack.rb index 2d9bacff34c..26459be261a 100644 --- a/Formula/haskell-stack.rb +++ b/Formula/haskell-stack.rb @@ -1,8 +1,8 @@ class HaskellStack < Formula desc "Cross-platform program for developing Haskell projects" homepage "https://haskellstack.org/" - url "https://github.com/commercialhaskell/stack/archive/v2.9.1.tar.gz" - sha256 "512d0188c195073d7c452f4b54ca005005ce7b865052a4856dc9975140051d9c" + url "https://github.com/commercialhaskell/stack/archive/v2.9.3.tar.gz" + sha256 "52eff38bfc687b1a0ded7001e9cd83a03b9152a4d54347df7cf0b3dd92196248" license "BSD-3-Clause" head "https://github.com/commercialhaskell/stack.git", branch: "master" @@ -38,6 +38,10 @@ class HaskellStack < Formula end def install + # Remove locked dependencies which only work with a single patch version of GHC. + # If there are issues resolving dependencies, then can consider bootstrapping with stack instead. + (buildpath/"cabal.project").unlink + system "cabal", "v2-update" system "cabal", "v2-install", *std_cabal_v2_args @@ -47,6 +51,6 @@ class HaskellStack < Formula test do system bin/"stack", "new", "test" assert_predicate testpath/"test", :exist? - assert_match "# test", File.read(testpath/"test/README.md") + assert_match "# test", (testpath/"test/README.md").read end end