@@ -35,6 +35,7 @@ data BuildFlags = BuildFlags
3535 , bfDoUpload :: !Bool
3636 , bfEnableLibProfile :: !Bool
3737 , bfVerbose :: !Bool
38+ , bfSkipCheck :: !Bool
3839 } deriving (Show)
3940
4041data BuildType = Nightly | LTS BumpType
@@ -200,6 +201,7 @@ getPerformBuild buildFlags Settings {..} = PerformBuild
200201 , pbEnableTests = bfEnableTests buildFlags
201202 , pbEnableLibProfiling = bfEnableLibProfile buildFlags
202203 , pbVerbose = bfVerbose buildFlags
204+ , pbAllowNewer = bfSkipCheck buildFlags
203205 }
204206
205207-- | Make a complete plan, build, test and upload bundle, docs and
@@ -214,8 +216,11 @@ completeBuild buildType buildFlags = withManager tlsManagerSettings $ \man -> do
214216 putStrLn $ "Writing build plan to: " ++ fpToText planFile
215217 encodeFile (fpToString planFile) plan
216218
217− putStrLn "Checking build plan"
218− checkBuildPlan plan
219+ if bfSkipCheck buildFlags
220+ then putStrLn "Skipping build plan check"
221+ else do
222+ putStrLn "Checking build plan"
223+ checkBuildPlan plan
219224
220225 putStrLn "Performing build"
221226 performBuild (getPerformBuild buildFlags settings) >>= mapM_ putStrLn