Lowercasing package names #326
Replies: 3 comments 13 replies
-
First of all, it's a common practice, for many package managers from many other languages. Nothing needs to be re-invented. It was chosen for reasons. Case sensitivity is a way to typos. During installation, search, dependencies injection, and so on. It requires checking the uniquity of packages on many levels (pm and registry), and it requires much more work to make it stable. If selecting between better readability of package names, and stability, I would choose last. It is still possible, to keep readability, so, it would keep the original case during any display. But keep all the logic behind it in lowercase. |
Beta Was this translation helpful? Give feedback.
-
What if we let the option to call them in any case?
E.g. zpm install Healhshare.Package and have it in the list only as
healthshare.package?
And of course with normalization to lowercase during publishing and install
operations under the hood?
Find/search will list all in lowercase for sure.
Ср, 15 июня 2022 г. в 19:49, isc-kiyer ***@***.***>:
… Again I want to emphasise that I 100% agree that the registry should keep
package names in all lower case. However, the zpm client, which installs
the packages from the registry, need not coerce to lower case (since they
should already be in lower case).
For legacy registries (like we have in Perforce internally), we have mixed
casing so want to preserve that.
I would also be fine with Tim's suggestion of storing in lower case on the
client (if really needed. Seems unnecessary to me) and keeping original
casing for display values.
—
Reply to this email directly, view it on GitHub
<#326 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAVHEP6O5TWC5Z3R7IZQWCTVPH3QPANCNFSM5YYEW6NQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: <intersystems-community/zpm/repo-discussions/326/comments/2957197@
github.com>
|
Beta Was this translation helpful? Give feedback.
-
Why, when the whole world already solved this issue, we keep speaking about it? |
Beta Was this translation helpful? Give feedback.
-
Current Community convention is to keep package names lowercase everywhere, including in the code (reference)
Agree that developers should use only lower-case when publishing to the community registry.
Why must the names need to be coerced to lower case client side (once they are installed)?
For HealthShare, packages have not been all lowercase and ISC cannot change the names of those modules as that would really complicate back-porting to adhocs.
Each registry should have the flexibility to specify their own naming convention
Beta Was this translation helpful? Give feedback.
All reactions