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

Recommends ignored when using cpanfile #580

Open
theory opened this issue Aug 15, 2018 · 1 comment
Open

Recommends ignored when using cpanfile #580

theory opened this issue Aug 15, 2018 · 1 comment

Comments

@theory
Copy link

theory commented Aug 15, 2018

I'm adding a bundle command to the Sqitch project, to make it easier to bundle up Sqitch and all of its dependencies in a single directory. I expect to use this for Docker images, Homebrew formulas, and perhaps binary installers. After digging through Carton and cpanminus, it looks like Menlo is the key thing to use. So I made a cpanfile and wrote this:

    my $app = Menlo::CLI::Compat->new(
        quiet          => 1,
        notest         => 1,
        self_contained => 1,
        install_types  => [qw(requires recommends)],
        local_lib      => File::Spec->rel2abs($base),
        pod2man        => undef,
        cpanfile_path  => File::Spec->catfile(qw(dist cpanfile)),
        argv           => ['.'],
    );

Which works great, except that the recommends modules in the cpanfile aren't installed. Is Menlo not reading the cpanfile?

@theory
Copy link
Author

theory commented Aug 16, 2018

Hrm, looks like it works if I add installdeps => 1. I had though that was implied by self_contained, but apparently not. Is that right?

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

1 participant