Open phadej opened 2 weeks ago
Sounds reasonable. @ffaf1, any thoughts?
It is a sensible request. We already do some isValid
checks with regard to Windows
We just need to get this right with regard to — say — excluding autogenerated modules and the like.
We just need to get this right with regard to — say — excluding autogenerated modules
You don't need to exclude them. Autogenerated modules will also have files on the filesystem. (EDIT: when autogenerated...)
Describe the feature request
Make cabal check reject packages when source distribution contains files with invalid names on any operating system. For example
aux
is not valid on Windows (and Windows file systems are case insensitive)., so e.g. moduleFoo.Aux.Helpers
orLanguage.Con
,Foreign.Nul
are a bad idea.Additional context
I think calling explicitly,
System.FilePath.Posix.isValid
andSystem.FilePath.Windows.isValid
would be enough.