Commit 408fa1d2 authored by Herbert Valerio Riedel's avatar Herbert Valerio Riedel 🕺
Browse files

Only test for same cabal-version (but not ghc-ver)

The overly strict test was introduced in
but this breaks GHC bindists. Cabal 1.20 and older
also only checked the cabal version to match but
ignored the compiler versions.

Differing compiler versions per se are considered harmless.

Approved by @dcoutts
parent 4f114eae
......@@ -208,7 +208,7 @@ getConfigStateFile filename = do
Left _ -> throw ConfigStateFileNoParse
Right (_, _, x) -> x
deferErrorIfBadVersion act
| cabalId /= currentCabalId || compId /= currentCompilerId = do
| cabalId /= currentCabalId = do
eResult <- try act
throw $ ConfigStateFileBadVersion cabalId compId eResult
| otherwise = act
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment