Skip to content

Commit

Permalink
Remove deprecated/obsolete projectConfigWorldFile, fixes haskell#3749.
Browse files Browse the repository at this point in the history
Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
  • Loading branch information
ezyang committed Sep 6, 2016
1 parent 70098ef commit 6852992
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions cabal-install/Distribution/Client/ProjectConfig/Legacy.hs
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ convertLegacyBuildOnlyFlags globalFlags configFlags
GlobalFlags {
globalCacheDir = projectConfigCacheDir,
globalLogsDir = projectConfigLogsDir,
globalWorldFile = projectConfigWorldFile,
globalWorldFile = _,
globalHttpTransport = projectConfigHttpTransport,
globalIgnoreExpiry = projectConfigIgnoreExpiry
} = globalFlags
Expand Down Expand Up @@ -468,7 +468,7 @@ convertToLegacySharedConfig
globalCacheDir = projectConfigCacheDir,
globalLocalRepos = projectConfigLocalRepos,
globalLogsDir = projectConfigLogsDir,
globalWorldFile = projectConfigWorldFile,
globalWorldFile = mempty,
globalRequireSandbox = mempty,
globalIgnoreSandbox = mempty,
globalIgnoreExpiry = projectConfigIgnoreExpiry,
Expand Down Expand Up @@ -787,7 +787,7 @@ legacySharedConfigFieldDescrs =
]
. filterFields
[ "remote-repo-cache"
, "logs-dir", "world-file", "ignore-expiry", "http-transport"
, "logs-dir", "ignore-expiry", "http-transport"
]
. commandOptionsToFields
) (commandOptions (globalCommand []) ParseArgs)
Expand Down
3 changes: 1 addition & 2 deletions cabal-install/Distribution/Client/ProjectConfig/Types.hs
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,7 @@ data ProjectConfigBuildOnly
projectConfigHttpTransport :: Flag String,
projectConfigIgnoreExpiry :: Flag Bool,
projectConfigCacheDir :: Flag FilePath,
projectConfigLogsDir :: Flag FilePath,
projectConfigWorldFile :: Flag FilePath
projectConfigLogsDir :: Flag FilePath
}
deriving (Eq, Show, Generic)

Expand Down

0 comments on commit 6852992

Please sign in to comment.