haskell / haskell/cabal

Prompt to update package list instead of proceeding

Open
#11,848 6 comments 0 reactions 0 assignees View on GitHub
cabal-install: cmd/build cabal-install: cmd/update type: enhancement
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

When running any of the cabal commands I quite often get either that the package list is old or (as I currently did on a fresh machine) that it doesn't exist:
```
Warning: The package list for 'hackage.haskell.org' does not exist. Run 'cabal
update' to download it.
Resolving dependencies...
Error: [Cabal-7107]
Could not resolve dependencies:
...
```

Instead of just proceeding, display a prompt `Do you want to download or update the package list? (y/n)` instead. Especially if the package list doesn't exist. Otherwise, as the build proceeds and more output is written to the console, if the user is not careful to read it, they might not notice that the package is actually buildable, but it's just the package index that is missing.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.