Skip to content
Snippets Groups Projects
Commit 6a1a5742 authored by ilovezfs's avatar ilovezfs Committed by Mike McQuaid
Browse files

Haskell#cabal_install more robust deps resolution


The default max-backjumps can be too low, especially since
Language::Haskell::Cabal doesn't guarantee an LTS config.

In particular, this fixes a git-annex build failure in Homebrew/homebrew#47950

Closes Homebrew/homebrew#49158.

Signed-off-by: default avatarMike McQuaid <mike@mikemcquaid.com>
parent 2517d396
No related branches found
No related tags found
No related merge requests found
......@@ -45,7 +45,13 @@ module Language
end
def cabal_install(*args)
system "cabal", "install", "--jobs=#{ENV.make_jobs}", *args
# cabal-install's dependency-resolution backtracking strategy can easily
# need more than the default 2,000 maximum number of "backjumps," since
# Hackage is a fast-moving, rolling-release target. The highest known
# needed value by a formula at this time (February 2016) was 43,478 for
# git-annex, so 100,000 should be enough to avoid most gratuitous
# backjumps build failures.
system "cabal", "install", "--jobs=#{ENV.make_jobs}", "--max-backjumps=100000", *args
end
def cabal_install_tools(*tools)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment