File tree 1 file changed +7
-1
lines changed 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -626,13 +626,19 @@ ensureConfig newConfigCache pkgDir ExecuteEnv {..} announce cabal cabalfp = do
626
626
if boptsReconfigure eeBuildOpts
627
627
then return True
628
628
else do
629
+ -- We can ignore the components portion of the config
630
+ -- cache, because it's just used to inform 'construct
631
+ -- plan that we need to plan to build additional
632
+ -- components. These components don't affect the actual
633
+ -- package configuration.
634
+ let ignoreComponents cc = cc { configCacheComponents = Set. empty }
629
635
-- Determine the old and new configuration in the local directory, to
630
636
-- determine if we need to reconfigure.
631
637
mOldConfigCache <- tryGetConfigCache pkgDir
632
638
633
639
mOldCabalMod <- tryGetCabalMod pkgDir
634
640
635
- return $ fmap configCacheOpts mOldConfigCache /= Just (configCacheOpts newConfigCache)
641
+ return $ fmap ignoreComponents mOldConfigCache /= Just (ignoreComponents newConfigCache)
636
642
|| mOldCabalMod /= Just newCabalMod
637
643
let ConfigureOpts dirs nodirs = configCacheOpts newConfigCache
638
644
when needConfig $ withMVar eeConfigureLock $ \ _ -> do
You can’t perform that action at this time.
0 commit comments