ddssff / cabal-debian

Create a Debianization by examining a .cabal file.
Other
16 stars 10 forks source link

stackage: `verify-package cabal-debian` complains about tabs and misnamed cabal package #72

Open andreasabel opened 3 years ago

andreasabel commented 3 years ago

I am trying to reenable cabal-debian on stackage (https://github.com/commercialhaskell/stackage/issues/5801), but the standard validation procedure has problems with this package:

$ ./verify-package cabal-debian
Unpacked cabal-debian (from Hackage) to .../tmp/cabal-debian-5.1/
Looking for .cabal or package.yaml files to use to init the project.
Using cabal packages:
- ./
- test-data/alex/input/
- test-data/archive/input/
- test-data/artvaluereport-data/input/
- test-data/artvaluereport2/input/
- test-data/clckwrks-dot-com/input/
- test-data/creativeprompts/input/

Cabal file warning in .../tmp/cabal-debian-5.1/test-data/alex/input/alex.cabal@17:2: Tabs used as indentation at 17:2, 18:2, 19:2, 20:2, 21:2, 22:2, 23:2, 24:2, 25:2, 26:2, 27:2, 28:2, 29:2, 30:2, 31:2, 32:2, 33:2, 34:2, 35:2, 36:2, 37:2, 38:2, 39:2, 40:2, 41:2, 42:2, 43:2, 44:2, 45:2, 46:2, 47:2, 48:2, 49:2, 50:2, 51:2, 52:2, 53:2
cabal file path .../tmp/cabal-debian-5.1/test-data/artvaluereport2/input/artvaluereport2.cabal does not match the package name it defines.
Please rename the file to: ArtValueReport.cabal
For more information, see: https://github.com/commercialhaskell/stack/issues/317

These are just test-data, so this is not critical, but maybe these .cabal files should be well-formed nevertheless?