Skip to content
Snippets Groups Projects
Commit 6942e7e8 authored by andreas.abel's avatar andreas.abel
Browse files

Fix #7705: only write default configuration if no --config-file

New behavior, e.g.:
```
$ cabal --config-file=ABSENT info happy

Config file path source is commandline option.
Error: cabal: Config file not found: ABSENT
(Config files can be created via the cabal-command 'user-config init'.)

$ CABAL_CONFIG=missing.file cabal info frown

Config file path source is environment variable CABAL_CONFIG.
Error: cabal: Config file not found: missing.file
(Config files can be created via the cabal-command 'user-config init'.)
```
parent c6cbebde
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment