skaji/cpm

cpm fails to resolve, but Carton succeeds

Opened this issue · 2 comments

I have a cpanfile that has:

requires 'Paws', '0.42';

And my cpanfile.snapshot as Paws at 0.42:

  Paws-0.42
    pathname: J/JL/JLMARTIN/Paws-0.42.tar.gz
    provides:

I install using this command:

cpm install --resolver "02packages,$DARKPAN_URL" --resolver metadb

And cpm fails saying that it failed to resolved Paws (although it works with 0.41). However, carton install does work, so I don't know if that falls back to some other method that cpm doesn't with metadb?

skaji commented

Try --resolver snapshot option.

That worked-- thanks! Sorry for filing what wasn't a bug. I tried to search the documentation for a solution, but didn't find this. I see that here:

It does list these as the options for resolver:

available classes: metadb/metacpan/02packages/snapshot

I wonder if it would be a good idea to document these somewhere and what they are, and what the default for --resolver is if nothing is passed in? It's still not clear to me what snapshot means from the documentation.