Skip to content

Commit

Permalink
Merge pull request #3797 from ezyang/pr/remove-world
Browse files Browse the repository at this point in the history
Remove deprecated/obsolete projectConfigWorldFile, fixes #3749.
  • Loading branch information
23Skidoo authored Sep 7, 2016
2 parents 9dbdf07 + dec83c2 commit dc2b020
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 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
Original file line number Diff line number Diff line change
Expand Up @@ -305,19 +305,18 @@ instance Arbitrary ProjectConfigBuildOnly where
<*> arbitrary
<*> (fmap getShortToken <$> arbitrary)
<*> (fmap getShortToken <$> arbitrary)
<*> (fmap getShortToken <$> arbitrary)
where
arbitraryNumJobs = fmap (fmap getPositive) <$> arbitrary

shrink (ProjectConfigBuildOnly
x00 x01 x02 x03 x04 x05 x06 x07
x08 x09 x10 x11 x12 x13 x14 x15
x16 x17) =
x16) =
[ ProjectConfigBuildOnly
x00' x01' x02' x03' x04'
x05' x06' x07' x08' (postShrink_NumJobs x09')
x10' x11' x12' x13 x14'
x15 x16 x17
x15 x16
| ((x00', x01', x02', x03', x04'),
(x05', x06', x07', x08', x09'),
(x10', x11', x12', x14'))
Expand Down

0 comments on commit dc2b020

Please sign in to comment.