haskell / haskell/cabal

Improve "new-configure" status message (cabal 1.25)

Open
#4,118 1 comment 1 reaction 0 assignees View on GitHub
cabal-install: v2-build system type: enhancement
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

For current head, `cabal new-configure` generates a report of the form

```
Resolving dependencies...
In order, the following would be built (use -v for more details):
- Cabal-1.24.1.0 (lib) (requires build)
- cabal-install-1.25.0.0 (exe:cabal) (configuration changed)
...
```

A better wording would be

```
Resolving dependencies...
In order, the following are configured for building (use -v for more details):
- Cabal-1.24.1.0 (lib) (requires build)
- cabal-install-1.25.0.0 (exe:cabal) (configuration changed)
...
```

However, in the source for this, the message is configured via

```haskell
= noticeNoWrap verbosity $ unlines $
("In order, the following " ++ wouldWill ++ " be built" ++
ifNormal " (use -v for more details)" ++ ":")
: map showPkgAndReason pkgs

where
...
wouldWill | buildSettingDryRun = "would"
| otherwise = "will"
```

Before changing this willy-nilly, how is it that the `buildSettingDryRun` flag is set for a `new-configure`?

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.