Add cabal-hash revision info when displaying recommended packages when failing to construct buildplan#4068
Conversation
| @@ -22,7 +22,9 @@ import Stack.Prelude hiding (Display (..)) | |||
| import Control.Monad.RWS.Strict hiding ((<>)) | |||
There was a problem hiding this comment.
Can you add a note to the ChangeLog about the change and which issue it resolves?
src/Stack/Build/ConstructPlan.hs
Outdated
| , callStack :: ![PackageName] | ||
| , extraToBuild :: !(Set PackageName) | ||
| , getVersions :: !(PackageName -> IO (Set Version)) | ||
| , getVersions :: !(PackageName -> IO (HashMap Version (NE.NonEmpty CabalHash))) |
There was a problem hiding this comment.
Regarding our discussion: can you replace the NonEmpty CabalHash with either [CabalHash] or Maybe CabalHash and remove the usage of partial functions below? Alternatively, you could modify the original [CabalHash] to be a NonEmpty CabalHash.
|
Unfortunately, any modification to the Since I don't really have the time to dig into the template-haskell code right now, I will remove the use of the partial function |
|
This PR should be ready to go barring no other requested changes 🎉 |
| case latestApplicableVersion range vs of | ||
| Nothing -> pure Nothing | ||
| Just lappVer -> do | ||
| let mlappRev = join (HashMap.lookup lappVer vsAndRevs) |
This PR addresses the following issue #3925
TODO:
Tested by removing the
rioextra-dependency in the stack.yaml file and then trying to build the package with the newly generated stack executable.