From 344f38cef08e334894e98684cbef25be4fd8e7c6 Mon Sep 17 00:00:00 2001 From: Mike Pilgrem Date: Mon, 1 Jul 2024 23:56:53 +0100 Subject: [PATCH 1/2] Fix #7458 Remove Cabal from appearing directly in snapshots --- build-constraints.yaml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/build-constraints.yaml b/build-constraints.yaml index 0764d759..a3e7408b 100644 --- a/build-constraints.yaml +++ b/build-constraints.yaml @@ -482,8 +482,14 @@ packages: - type-of-html-static "Mikolaj Konarski @Mikolaj": - - Cabal < 3.12.0.0 # https://github.com/commercialhaskell/stackage/issues/7399 - - cabal-install +# Cabal is a GHC boot package and, consequently, like all other boot packages, +# should not be included directly in a Stackage snapshot. The package version is +# specified by the specified GHC version. To do otherwise affects adversely +# Stack's ability to override the specified compiler easily. See: +# https://github.com/commercialhaskell/stackage/issues/7357 and +# https://github.com/commercialhaskell/stackage/issues/7458. +# - Cabal < 3.12.0.0 # https://github.com/commercialhaskell/stackage/issues/7399 + - cabal-install < 3.10.3.0 # cabal-install-3.10.3.0 requires Cabal >= 3.10.3 - sdl2-ttf - enummapset - assert-failure From a549eb7b0732f12a6389c7af62be680ffe5d8b60 Mon Sep 17 00:00:00 2001 From: Mike Pilgrem Date: Tue, 2 Jul 2024 00:30:10 +0100 Subject: [PATCH 2/2] Remove cabal-install from snapshot, as blocks tar >= 0.6 --- build-constraints.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build-constraints.yaml b/build-constraints.yaml index a3e7408b..25e18bde 100644 --- a/build-constraints.yaml +++ b/build-constraints.yaml @@ -489,7 +489,9 @@ packages: # https://github.com/commercialhaskell/stackage/issues/7357 and # https://github.com/commercialhaskell/stackage/issues/7458. # - Cabal < 3.12.0.0 # https://github.com/commercialhaskell/stackage/issues/7399 - - cabal-install < 3.10.3.0 # cabal-install-3.10.3.0 requires Cabal >= 3.10.3 +# See https://github.com/commercialhaskell/stackage/pull/7471#issuecomment-2201380545 +# cabal-install < 3.10.3.0 blocks tar >= 0.6. + - cabal-install < 0 # cabal-install-3.10.3.0 requires Cabal >= 3.10.3 - sdl2-ttf - enummapset - assert-failure