-
Notifications
You must be signed in to change notification settings - Fork 36
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
Failed to fetch/configure distribution maintained in git #210
Comments
cpm gets distribution information from META.json, It is true that cpm allows distributions without META.json in CPAN, but it has some historical backgrounds. |
I don't get it, if cpm allows distributions without META.json in CPAN, why is it failing, if the distribution is maintained in git. Can this behaviour be changed?! I am searching for a CPAN client that is able to download and install dependencies configured in a cpanfile. Some of these dependencies are only maintained in git. I have tried cpanm, carton, and now cpm, without success. |
After reading An introduction to CPAN distribution metadata
Conclusion: A git based download/dependency resolution should never rely on META.json and/or META.yml because in the git source code repository these files usually do not exist. They exist only in CPAN after the release of the distribution. |
@neilb you've been cited just above. 😄 Was wondering what your thoughts on this are. |
Several thoughts:
|
Sorry to bother you all again. Was this topic discussed during the PTS 2023? I am still looking for a |
I thought the most recent cpm version (0.997015) would have solved this issue too but unfortunately it does not. Reading the comment of the pull request #243 I am even more surprised why the restriction ("Distribution does not have META.json nor META.yml") still exists if I am installing from Git directly using a corresponding cpanfile. |
perl 5.14.2
cpm 0.997007
I have used cpm to install this
on runtime => sub { requires 'Async', '== 0.12', git => 'git@github.com:ap/Async.git', ref => 'v0.12'; };
dependency locally.
Cloning and switching to the tag works but finally the installation fails. Is this
the reason? If yes please explain why this META.* information is mandatory?
The text was updated successfully, but these errors were encountered: