Code Monkey home page Code Monkey logo

Comments (9)

plicease avatar plicease commented on July 22, 2024 1

I notice that right after checking the protocol, cpanminus-reporter checks to see if it can find the author name from the URL:

https://github.com/garu/App-cpanminus-reporter/blob/master/lib/App/cpanminus/reporter.pm#L314

If that check is robust enough, perhaps it is enough to just add 'file' as an acceptable protocol?

from app-cpanminus-reporter.

 avatar commented on July 22, 2024 1

I see no reason not to allow file:///

from app-cpanminus-reporter.

garu avatar garu commented on July 22, 2024

I don't know guys... I'm afraid it could do more harm than good. Perhaps we can make a more robust solution, like checksumming of the local repository tarball and comparing it to the CPAN version. Or am I being too much of a purist here?

from app-cpanminus-reporter.

karenetheridge avatar karenetheridge commented on July 22, 2024

summoning @dagolden for an opinion about reporter purity :)

On Mon, Jan 5, 2015 at 8:49 AM, Breno G. de Oliveira <
[email protected]> wrote:

I don't know guys... I'm afraid it could do more harm than good. Perhaps
we can make a more robust solution, like checksumming of the local
repository tarball and comparing it to the CPAN version. Or am I being too
much of a purist here?


Reply to this email directly or view it on GitHub
#15 (comment)
.

from app-cpanminus-reporter.

plicease avatar plicease commented on July 22, 2024

My problem with a purity argument is that all of the arguments against using file:// also apply to http://.

As an example, if someone configures the use of an official CPAN mirror that later is retired (but maintains its old files), you have a problem. Or if that mirror is hacked to include bogus files. It doesn't have to be an official CPAN mirror it could be an organizations mirror. Or like me, at home I maintain a minicpan mirror served via http which serves a number of virtual hosts that I use for testing. Please explain to me how any of these scenarios are fool proof?

Based on my experience as a CPAN author, the universe of cpan testers is pretty small and they are sophisticated enough to understand these issues.

In the very least a --please-allow-file-urls-i-promise-to-keep-my-mirror-up-to-date option would be helpful. It would in the least force the user to read some documentation and give you the opportunity to educate on the dangers (such as they are). Such an option doesn't seem to me to be any less dangerous than the --force option. Having read the documentation I know to use it with care.

from app-cpanminus-reporter.

plicease avatar plicease commented on July 22, 2024

Support for file:// url would be really useful for me. In fact I have to apply a patch to my laptop systems, but I'd love to be able to just use the version out of cpan without patching.

Can we please get this as an option at least? I can open a PR with documentation for such an option if there is a concern. I think just supporting file:// is the best way to go.

from app-cpanminus-reporter.

plicease avatar plicease commented on July 22, 2024

@garu would you please consider allowing file URLs? It is aggravating to have to patch cpanminus-reporter. As mentioned before:

  • Such URLs will only work in a mirror of CPAN since there are checks immediately after to ensure that a username can be determined from the URL
  • The argument that the mirror might be out of date is bogus, because an http or ftp mirror could also be out of date.

Please at least add an option that allows an option to allow file URLs. Displaying an error message when a file URL is attempted without the option explaining the dangers (however slim) involved in using a file URL could thus be averted by conscientious users.

from app-cpanminus-reporter.

jkeenan avatar jkeenan commented on July 22, 2024

Re support for file schema, see #29

from app-cpanminus-reporter.

garu avatar garu commented on July 22, 2024

DONE! Thanks everyone, sorry it took so long. Yay for PTS 2023 \o/

from app-cpanminus-reporter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.