Skip to content

Fails when cpanfile.snapshot exists #10

@oalders

Description

@oalders

See https://github.com/metacpan/github-meets-cpan/runs/5678290649?check_suite_focus=true

Run perl-actions/install-with-cpm@v1
  with:
    cpanfile: cpanfile
    sudo: false
    tests: false
    global: true
    perl: perl
    path: $Config{installsitescript}/cpm
    version: master
/usr/bin/docker exec  d67616a0e164d977e593575a745540d0cffca8f000058471163d080b9980e5fb sh -c "cat /etc/*release | grep ^ID"
/usr/local/bin/perl -MConfig -e print "$Config{installsitescript}/cpm"
/usr/local/bin/cpm::set-output name=Get cpm from https%3A//raw.githubusercontent.com/skaji/cpm/master/cpm::
install_to /usr/local/bin/cpm
do_exec: /usr/local/bin/perl
/usr/local/bin/perl -MFile::Copy=cp -e cp("/__w/_temp/[2](https://github.com/metacpan/github-meets-cpan/runs/5678290649?check_suite_focus=true#step:4:2)52d8f52-b708-4495-8[3](https://github.com/metacpan/github-meets-cpan/runs/5678290649?check_suite_focus=true#step:4:3)08-8c970[5](https://github.com/metacpan/github-meets-cpan/runs/5678290649?check_suite_focus=true#step:4:5)c05ca[7](https://github.com/metacpan/github-meets-cpan/runs/5678290649?check_suite_focus=true#step:4:7)", "/usr/local/bin/cpm"); chmod(0755, "/usr/local/bin/cpm")
cpanfile: cpanfile!
cpanfile: /__w/github-meets-cpan/github-meets-cpan/cpanfile! [resolved]
do_exec: /usr/local/bin/perl
/usr/local/bin/perl /usr/local/bin/cpm install --show-build-log-on-failure -v --no-test -g --cpanfile /__w/github-meets-cpan/github-meets-cpan/cpanfile
To load cpanfile.snapshot, you need to install Carton::Snapshot.
Error: The process '/usr/local/bin/perl' failed with exit code 2

It would be helpful automatically to install Carton::Snapshot in cases where a cpanfile.snapshot exists or to mention in the docs that it's the user's responsibility to do this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions