haskell-works / cabal-cache

CI assistant
BSD 3-Clause "New" or "Revised" License
44 stars 11 forks source link

Restore recache package database step in sync-from-archive #226

Closed newhoggy closed 1 year ago

hasufell commented 1 year ago

What's the rationale?

newhoggy commented 1 year ago

I accidentally deleted the code when refactoring to oops. This change is to put that code back in.

This step is necessary because the package database cache must always be updated with whatever is in the package database or cabal can fail when building.

newhoggy commented 1 year ago

See https://github.com/haskell-works/cabal-cache/blob/4e352fb/app/App/Commands/SyncFromArchive.hs#L183-L188