Skip to content
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

cpanm fails to find Dist::Zilla::TravisCI #1

Closed
melo opened this issue Sep 4, 2012 · 3 comments
Closed

cpanm fails to find Dist::Zilla::TravisCI #1

melo opened this issue Sep 4, 2012 · 3 comments

Comments

@melo
Copy link

melo commented Sep 4, 2012

If I try:

$ cpanm -v Dist::Zilla::TravisCI
cpanm (App::cpanminus) 1.5017 on perl 5.014002 built for darwin-2level
Work directory is /Users/melo/.cpanm/work/1346801985.62430
You have make /usr/bin/make
You have LWP 6.04
You have /usr/bin/tar: bsdtar 2.8.3 - libarchive 2.8.3
You have /usr/bin/unzip
Searching Dist::Zilla::TravisCI on mirror file:///Users/melo/perl5/cpan ...
Downloading index file file:///Users/melo/perl5/cpan/modules/02packages.details.txt.gz ...
! Finding Dist::Zilla::TravisCI () on mirror file:///Users/melo/perl5/cpan failed.
! Couldn't find module or a distribution Dist::Zilla::TravisCI ()

A similar problem exists with Gearman and Gearman::Worker/::Client. See Miyagawa comment about this and the pull request he sent to that dist, should be enough for a fix here.

perl-carton/carton#34 (comment)

@SineSwiper
Copy link
Owner

See https://metacpan.org/module/CPAN::Meta::Spec#name

This field is the name of the distribution. This is often created by taking the "main package" in the distribution and
changing :: to -, but the name may be completely unrelated to the packages within the distribution. C.f.
http://search.cpan.org/dist/libwww-perl/.

So, the name could be called "Herp-A-Derp", but that shouldn't really have any bearing on module download. The actual plugin is called Dist::Zilla::Plugin::TravisYML, which would download the correct distro. There is also a POD in the namespace of Dist::Zilla::TravisCI, but the provides section of the META data doesn't cover PODs.

What are you trying to do here?

@melo
Copy link
Author

melo commented Sep 6, 2012

Given that the distribution name is Dist-Zilla-TravisCI, I was expecting to use cpanm Dist::Zilla::TravisCI and get it.

@SineSwiper
Copy link
Owner

Sorry. I named it as such because I wanted to distro to encapsulate all things DZIL and TravisCI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants