Pkg.jl: Make Pkg warn on case dependent file names

Created on 28 Feb 2019  路  5Comments  路  Source: JuliaLang/Pkg.jl

It's completely fine to build a package on Linux that uses case sensitive files, but the same package will error on Mac OS and Windows (E.g. during test).

Having Pkg warn on files that only differ by lower/uppercase would, IMHO, be a nice feature.

With pointers to the source code I might be able to prepare a PR.

All 5 comments

At what point would you want the error about files that differ only by case?

At test appears natural. Or is there some kind of validation command (comparable to Rs "check")?

In this PR it's only implemented as a warning, but I don't see why it shouldn't be strict.
https://github.com/JuliaLang/Pkg.jl/pull/1099

Are there any plans to add general package validation functions into Pkg.jl? See http://r-pkgs.had.co.nz/check.html for inspiration:

  • Checking for hidden files and directories.
  • Checking for portable file names.
  • Checking for sufficient/correct file permissions.
  • Checking installed package size.
  • ...

Or would this be better fit into a new package (e.g. PkgChecks) ?

Yes, this should all be checked. Can you file an issue on Registrator.jl?

Don't think there is anything left to do here.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

timholy picture timholy  路  4Comments

moustachio-belvedere picture moustachio-belvedere  路  3Comments

DilumAluthge picture DilumAluthge  路  3Comments

omus picture omus  路  4Comments

jlperla picture jlperla  路  3Comments