Perl-Toolchain-Gang / cpan-static

Static install specification for CPAN distributions
13 stars 3 forks source link

Support for x_static_install with dynamic_config 1 #8

Open haarg opened 7 years ago

haarg commented 7 years ago

It would make some sense to support for x_static_install even with dynamic_config of 1. This would mean that the Makefile.PL or Build.PL would have to be run to calculate dependencies, but that further installation could be done statically.

This adds extra complexity though, and may have some unforeseen edge cases. It should be left for some later version of the spec, if it does eventually get implemented.

Until then, we should clarify that x_static_install is not supported if dynamic_config is true.

karenetheridge commented 6 years ago

semi-static install? 😾

miyagawa commented 6 years ago

+1 to clarify in the doc.

Leont commented 6 years ago

Until then, we should clarify that x_static_install is not supported if dynamic_config is true.

Agreed.

karenetheridge commented 6 years ago

you all may want to check out the rules that I implemented here: https://metacpan.org/source/ETHER/Dist-Zilla-Plugin-StaticInstall-0.011/lib/Dist/Zilla/Plugin/StaticInstall.pm#L109-219