Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable .ghc-environment file generation by default #5985

Merged
merged 1 commit into from Apr 7, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion cabal-install/Distribution/Client/ProjectOrchestration.hs
Expand Up @@ -405,7 +405,7 @@ runProjectPostBuildPhase verbosity
$ projectConfig

shouldWriteGhcEnvironment =
case fromFlagOrDefault WriteGhcEnvironmentFilesOnlyForGhc844AndNewer
case fromFlagOrDefault NeverWriteGhcEnvironmentFiles
writeGhcEnvFilesPolicy
of
AlwaysWriteGhcEnvironmentFiles -> True
Expand Down
4 changes: 2 additions & 2 deletions cabal-install/Distribution/Client/Types.hs
Expand Up @@ -597,8 +597,8 @@ instance Monoid AllowOlder where
-- ------------------------------------------------------------

-- | Whether 'v2-build' should write a .ghc.environment file after
-- success. Possible values: 'always', 'never', 'ghc8.4.4+' (the
-- default; GHC 8.4.4 is the earliest version that supports
-- success. Possible values: 'always', 'never' (the default), 'ghc8.4.4+'
-- (8.4.4 is the earliest version that supports
-- '-package-env -').
data WriteGhcEnvironmentFilesPolicy
= AlwaysWriteGhcEnvironmentFiles
Expand Down
1 change: 1 addition & 0 deletions cabal-install/changelog
@@ -1,6 +1,7 @@
-*-change-log-*-

3.0.0.0 (current development version)
* '--write-ghc-environment-files' now defaults to 'never' (#4242)
* Fix `sdist`'s output when sent to stdout. (#5874)
* Allow a list of dependencies to be provided for `repl --build-depends`. (#5845)
* Legacy commands are now only accessible with the `v1-` prefixes, and the `v2-`
Expand Down