-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do not index Local:: namespace (nor Local) #541
base: master
Are you sure you want to change the base?
Do not index Local:: namespace (nor Local) #541
Conversation
Just a quick thought.
and got
I feel it might be better to fix the docs. |
I favour this change! |
@charsbar Thank you for the review and quick thoughts. It made me think again about the validity of this code change and test more, but after that I still consider this change as correct 👍🏼 I'm detailing after the "why".
Yes, internally, but then when modules reach the index, it is with case. Later when installing, modules are always referred with case (e.g.
I got your point and I somewhat agree with you. Though it's going a bit further than what I'm thinking. Current proposal of removing from index will already well protect at install time (CPAN client).
Yes, and we think that we could clean these few modules (from index) 😃 |
I am in favour of this change.
This doesn't look bad at all. Aside from Local::Acme, all of these are "cuckoo" modules hiding in another distribution and all look unintentionally indexed. |
The
Local::
namespace is advertised as "reserved" and "not conflicting", encouraging people to use it to protect from inadvertently installing public modules. But currently, Local:: namespace can be indexed, like any other namespace. In the scope of CPAN Security, I propose this change to avoid indexing Local::Please find below the proof of testing of this change:
Along with this change, we should ideally cleanup the index from any Local:: module (but keep
local::lib
)Official documentation
The PAUSE documentation On The Naming of Modules says:
The Perl Module Library (perlmodlib) goes further with:
More references