cpm icon indicating copy to clipboard operation
cpm copied to clipboard

Feature Request: Remote cpanfile

Open theory opened this issue 4 years ago • 2 comments

Would be cool to support URLS in the --cpanfile option, e.g.

cpm install --cpanfile https://fastapi.metacpan.org/source/MIYAGAWA/Plack-1.0048/cpanfile

Would be especially useful for CI/CD pipelines.

theory avatar Oct 17 '21 16:10 theory

You can try

❯ cpm install --cpanfile <(curl -fsSL https://fastapi.metacpan.org/source/MIYAGAWA/Plack-1.0048/cpanfile)

skaji avatar Oct 17 '21 22:10 skaji

Yeah, that's what I'm doing; just would be nice not to have to use another utility (I have GH Actions that run on Windows), since cpm has access to all the code it needs to download files, if it recognized a URL. No biggie, just potentially a nice bit of sugar.

theory avatar Oct 17 '21 22:10 theory