File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
src/Distribution/Server/Util Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -179,7 +179,12 @@ checkCabalFileRevision checkXRevision old new = do
179
179
checkPackageChecks :: Check GenericPackageDescription
180
180
checkPackageChecks pkg pkg' =
181
181
let checks = checkPackage pkg Nothing
182
- checks' = checkPackage pkg' Nothing
182
+ checks' = filter notUpperBounds $ checkPackage pkg' Nothing
183
+ -- if multiple upper bounds are missing, then the simple set subtraction might detect a change to
184
+ -- just one, and fail. Ideally we'd perform a set subtraction directly on just the missing bounds
185
+ -- warning contents. A simple second best is to discard this check for now.
186
+ notUpperBounds (PackageDistSuspiciousWarn (MissingUpperBounds _)) = False
187
+ notUpperBounds _ = True
183
188
in case checks' \\ checks of
184
189
[] -> return ()
185
190
newchecks -> fail $ unlines (map ppPackageCheck newchecks)
You can’t perform that action at this time.
0 commit comments