Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This may or may not be a good idea, but thought it worth submitting a PR to get some feedback.
Used only with
--local-lib-contained
,--for-packaging
attempts to install only runtime requirements in the local lib. All test, config, and build requirements are installed in standard site destination. The idea is to install everything in a directory that can be bundled up and distributed, minimizing the amount of unnecessary stuff to include for a purely runtime use case. The use cases I'm thinking of are Homebrew formulas, minimalist Docker images (like this, and binary installers for GUI OSes like macOS and Windows.There are a couple of issues working againsrt this plan, however:
Not all distributions properly specify requirements. Older distributions,
in particular, just list everything in the
PREREQ_PM
section of theMakefile.PL
, and therefor must be assumed to be runtime. See theDevel-Caller
Makefile.PL
for an example.There are bugs. I think I got most of it worked out, but when I tried to
use it with the Sqitch
./Build bundle
command (in progress), it ran into an errorwhen trying to install B::Hooks::OP::Check:
I think it's close, enough to give the idea, and might be worth revisiting or cribbing from at some point. Thoughts?