Ticket #933 (new enhancement)

Opened 15 months ago

Last modified 15 months ago

cabal configure doesn't suggest cabal install --only-dependencies

Reported by: guest Owned by:
Priority: normal Milestone: cabal-install-0.16
Component: cabal-install tool Version: 1.10.2.0
Severity: normal Keywords:
Cc: Difficulty: unknown
GHC Version: Platform:

Description

When running 'cabal configure' on a package that has missing dependencies, cabal fails to point out that the dependencies can be installed by running

cabal install --only-dependencies

When cabal is used by millions of programmers, this will cause $1bn in lost productivity.

Change History

follow-up: ↓ 3   Changed 15 months ago by kosmikus

  • milestone set to cabal-install-0.16

I'm a bit hesitant to add all these warnings and suggestions. For my taste, cabal is often already too noisy.

So let's consider this situation: I think most people come into contact with cabal first via cabal install. Compiling packages locally is mainly interesting for developers. Can't we expect that package developers will already know about cabal install?

As to the --only-dependencies flag. Perhaps I'm missing something, but I think I've never actually used it. Why should it suggest running that and not just suggest running cabal install?

  Changed 15 months ago by kosmikus

  • component changed from Cabal library to cabal-install tool

in reply to: ↑ 1   Changed 15 months ago by tibbe

Replying to kosmikus:

As to the --only-dependencies flag. Perhaps I'm missing something, but I think I've never actually used it. Why should it suggest running that and not just suggest running cabal install?

When developing a library cabal install isn't not what you want, as it would install some intermediate (i.e. unreleased) version of your library in a place where other libraries could start using it by misstake.

Note: See TracTickets for help on using tickets.