Closed zakame closed 11 years ago
OTOH, carton install
works as expected (the cpanfile deps for Text::Xslate and Module::CPANfile is not strict, so the latest gets pull in, while I'm not even sure why Class::Accessor::Chained::Fast is listed in check (it doesn't show up in carton tree
.)
[zakame:~/BookList-Amon2] master ± carton tree | grep Class
Class::Inspector (Class-Inspector-1.28)
Class::Accessor::Lite (Class-Accessor-Lite-0.05)
Class::Load (Class-Load-0.20)
suspect this could be more of a cpanm issue than carton?
No it's not. The issue is that your snapshot doesn't have the information for xslate and Class::Accesor::Chained::Fast. The reason why carton install
works is that it will fallback to CPAN, where as --deployment
won't, which is the intended behavior.
re: CPANfile, i don't understand the configure
requirement group in your cpanfile. I recommend you to delete them.
What version of carton are you using?
I tested locally with Text::Xslate and Class::Accessor::Chained with 5.18.1 and they get all package info correctly in snapshot.
As in the OP, I was using Carton v1.0.10 on the remote host. the snapshot file was generated over a month ago with Carton-dev pre 1.0 (in fact, last updated just a day shy of the official Carton v1.0 release.) I think that's where my trouble is :)
Thanks for clarifying!
BTW, the require on Module::CPANfile on configure was from Amon2 boilerplate, ping @tokuhirom
Basically, I'm trying to run a (not so old) Amon2 app (https://github.com/zakame/BookList-Amon2) on my remote machine (with a near-pristine Perl 5.18.1 on plenv, Carton and its deps being the only other modules from CPAN.) Following the tutorial for carton on deployment, it doesn't seem to work as I expect:
The failed-to-install modules still exist on CPAN, so I suspect this could be more of a cpanm issue than carton?