You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
cabal init --cabal-version 1.10 generates "cabal-version: 1.10" instead of "cabal-version: >=1.10"
To Reproduce
Steps to reproduce the behavior:
$ cabal init -n --cabal-version=1.10 p
Warning: Cabal spec versions < 1.18 do not support extra-doc-files. Doc files will be treated as extra-src-files.
Log: Guessing dependencies...
Log: Using cabal specification: 1.10
Warning: unknown license type, you must put a copy in LICENSE yourself.
Log: Creating fresh file CHANGELOG.md...
Log: Creating fresh directory ./app...
Log: Creating fresh file app/Main.hs...
Log: Creating fresh file p.cabal...
Warning: No synopsis given. You should edit the .cabal file and add one.
Info: You may want to edit the .cabal file and add a Description field.
$ cd p
$ grep cabal-version: p.cabal
cabal-version: 1.10
$ cabal check
Warning: These warnings may cause trouble when distributing the package:
Warning: No 'category' field.
Warning: The 'license' is AllRightsReserved. Is that really what you want?
Warning: p.cabal:1:25: With 1.10 or earlier, the 'cabal-version' field must
use range syntax rather than a simple version number. Use 'cabal-version: >=
1.10'.
Warning: The following errors will cause portability problems on other
environments:
Warning: No 'synopsis' or 'description' field.
Warning: Hackage would reject this package.
Describe the bug
cabal init --cabal-version 1.10 generates "cabal-version: 1.10" instead of "cabal-version: >=1.10"
To Reproduce
Steps to reproduce the behavior:
Expected behavior
cabal-version: >=1.10
System information
cabal 3.8.1.0-rc1
cc @emilypi @ptkato
The text was updated successfully, but these errors were encountered: