haskell/cabal
Ver no GitHubLocal no-index repositories cache leads to bad UX
Open
#9.136 aberto em 18 de jul. de 2023
good first issuere: user experiencetype: enhancement
Métricas do repositório
- Stars
- (1.731 stars)
- Métricas de merge de PR
- (Mesclagem média 36d 23h) (47 fundiu PRs em 30d)
Description
Describe the bug
It's documented that, when using local no-index repositories.
cabal-install creates a .cache file, and will aggressively use its contents if it exists. Therefore if you change the contents of the directory, remember to wipe the cache too.
but cabal-install offers no warning or message about this leaving the user staring, confused, at a solver failure. See for example #9133.
Expected behavior
Cabal should either
- Provide a better caching mechanism, detecting changes to the local repository.
- Remnind the user that it will only look at the cache file and that the user should manually delete the cache file if the repository has changed.