Skip to content

Add reconfigure command - #3818

Merged
ttuegel merged 5 commits into
haskell:masterfrom
ttuegel:reconfigure-merge
Sep 10, 2016
Merged

ttuegel merged 5 commits into
haskell:masterfrom
ttuegel:reconfigure-merge

Conversation

@ttuegel

@ttuegel ttuegel commented Sep 10, 2016

Copy link
Copy Markdown
Member

Fixes #2214 by adding a reconfigure command and invoking it whenever necessary. The last configure flags used are saved in a version-independent format so it should never be necessary for the user to reconfigure manually.

Fixes haskell#2214 by adding a `reconfigure` command and invoking it whenever
necessary. The last configure flags used are saved in a
version-independent format so it should never be necessary for the user
to reconfigure manually.
-- Cabal < 1.3.10 does not grok the '--constraints' flag.
flags_1_3_10 = flags_1_10_0 { configConstraints = [] }

configPackageDB' :: ConfigFlags -> PackageDBStack

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While you're at it, would be nice to add Haddock comments here to make it more clear what's the difference between these two and the normal versions.

@ttuegel
ttuegel merged commit 69f48b7 into haskell:master Sep 10, 2016
@ttuegel
ttuegel deleted the reconfigure-merge branch September 10, 2016 19:56
Comment thread cabal-install/Main.hs
let noAddSource = fromFlagOrDefault DontSkipAddSourceDepsCheck
(buildOnly buildExFlags)

-- reconfigure also checks if we're in a sandbox and reinstalls add-source

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment about the useSandbox check is out of date.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants