Skip to content

Commit 7c2b32b

Browse files
authored
Update max cabal-version check (#1224)
Also add a more informative comment.
1 parent b89121f commit 7c2b32b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Distribution/Server/Packages/Unpack.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,9 +216,9 @@ specVersionChecks specVerOk specVer = do
216216
when (specVer < CabalSpecV1_2) $
217217
throwError "'cabal-version' must be at least 1.2"
218218

219-
-- Safeguard; should already be caught by parser
220-
unless (specVer <= CabalSpecV3_0) $
221-
throwError "'cabal-version' must be at most 3.0"
219+
-- To keep people from uploading packages most users cannot use.
220+
unless (specVer <= CabalSpecV3_6) $
221+
throwError "'cabal-version' must be at most 3.6"
222222

223223
-- | The issue is that browsers can upload the file name using either unix
224224
-- or windows convention, so we need to take the basename using either

0 commit comments

Comments
 (0)