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

Installing from an archive fails, but works with cpanm #96

Open
Corion opened this issue Sep 11, 2022 · 3 comments
Open

Installing from an archive fails, but works with cpanm #96

Corion opened this issue Sep 11, 2022 · 3 comments

Comments

@Corion
Copy link

Corion commented Sep 11, 2022

I have packaged (a patched version of) DBD::SQLite as DBD-SQLite-1.71_06.tar.gz using make dist. I'm now trying to load that from the cpanfile:

requires 'Carp';
requires 'DBI' => '== 1.643';
#requires 'DBD::SQLite' => '>= 1.71_06';
#requires 'DBD::SQLite';
requires '/home/corion/Projekte/DBD-SQLite/DBD-SQLite-1.71_06.tar.gz'; # until there is a release with the fts5 support we want
requires 'DBIx::RunSQL';
requires 'PadWalker';

This fails but doesn't output any helpful diagnostics as to why.

Installing the archive directly using cpanm works:

corion@outerlimits:~/Projekte/Filesys-DB$ cpanm /home/corion/Projekte/DBD-SQLite/DBD-SQLite-1.71_06.tar.gz 
--> Working on /home/corion/Projekte/DBD-SQLite/DBD-SQLite-1.71_06.tar.gz
Fetching file:///home/corion/Projekte/DBD-SQLite/DBD-SQLite-1.71_06.tar.gz ... OK
Configuring DBD-SQLite-1.71_06 ... OK
Building and testing DBD-SQLite-1.71_06 ... OK
Successfully installed DBD-SQLite-1.71_06
1 distribution installed

carmel install fails with:

$ carmel install
...
---> Installing new dependencies: /home/corion/Projekte/DBD-SQLite/DBD-SQLite-1.71_06.tar.gz
Successfully installed DBI-1.643
Successfully installed DBD-SQLite-1.71_06
! Installing the dependencies failed: Module '/home/corion/Projekte/DBD-SQLite/DBD-SQLite-1.71_06.tar.gz' is not installed
! Bailing out the installation for Filesys-DB-0.01.
2 distributions installed
Using Alien::Build (2.68)
...

Is there anything that I can do to better diagnose that? Likely I'm doing something wrong, but I don't know how to get carmel to provide more details on what goes wrong...

The repo where my files live in is at [https://github.com/Corion/Filesys-DB].

@miyagawa
Copy link
Owner

Installing from a path is a planned but not supported feature. related to #55

@Corion
Copy link
Author

Corion commented Sep 12, 2022

Ah - sorry for the noise! I had seen that issue but failed to make the connection!

I assume that the same holds true for installing from a git repository or Github?

I guess a workaround would be to do dev releases to CPAN and have those in my cpanfile, but is there anything I can do to help Carmel work with tarfiles or other things not in a CPAN mirror?

@miyagawa
Copy link
Owner

I guess a workaround would be to do dev releases to CPAN and have those in my cpanfile,

yes, that'd work just fine.

Alternatively you could use some of the CPAN mirror creation tools like App::opan and use the mirror URL for it, but that might be overkill and the user experience is not as nice as you could if you can simply override it via requires options.

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