haskell / haskell/cabal

Cabal should suggest updating more prominently when it gets an unknown package.

Open
#2,262 3 comments 0 reactions 0 assignees View on GitHub
cabal-install: other type: enhancement
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

```
cumae:bloodhound callen$ cabal sandbox init
Config file path source is default config file.
Config file /Users/callen/.cabal/config not found.
Writing default configuration to /Users/callen/.cabal/config
Writing a default package environment file to
/Users/callen/work/bloodhound/cabal.sandbox.config
Creating a new sandbox at /Users/callen/work/bloodhound/.cabal-sandbox

cumae:bloodhound callen$ cabal install --enable-tests
Warning: The package list for 'hackage.haskell.org' does not exist. Run 'cabal
update' to download it.
Resolving dependencies...
cabal: Could not resolve dependencies:
trying: bloodhound-0.4.0.2 (user goal)
rejecting: bloodhound-0.4.0.2:!test (global constraint requires opposite flag
selection)
trying: bloodhound-0.4.0.2:*test
next goal: unordered-containers (dependency of bloodhound-0.4.0.2:*test)
fail (unknown package: unordered-containers)
Dependency tree exhaustively searched.

Note: when using a sandbox, all packages are required to have consistent
dependencies. Try reinstalling/unregistering the offending packages or
recreating the sandbox.

cumae:bloodhound callen$ cabal update
Downloading the latest package list from hackage.haskell.org
cumae:bloodhound callen$ cabal install --enable-tests
Resolving dependencies...
Notice: installing into a sandbox located at
/Users/callen/work/bloodhound/.cabal-sandbox
Downloading HUnit-1.2.5.2...
Downloading ansi-terminal-0.6.2.1...
Configuring ansi-terminal-0.6.2.1...
Downloading base64-bytestring-1.0.0.1...
Configuring HUnit-1.2.5.2...
Downloading cereal-0.4.1.0...
```

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.