Closed ugexe closed 5 months ago
I chose the name :$install-precompile
for two reasons. First is this only disables precompilation on install - when doing zef test .
it wouldn't be disabled, as that does not use a staging workflow like the testing that happens with zef install .
. In the future maybe we will want a way to do --/test-precompile
. Second is that we already have a pattern for flags that affect specific phases such as --/test-depends
and --install-timeout
.
edit: I changed my mind and went with :$precompile-install
😄
Context
CURI.install(...) receieved a :$precompile option at some point. Zef could provide a command line flag to allow using that option to disable installation precompilation.
Expected Behavior
Implementation Notes
Bool :$install-precompile = True
flag to theinstall
MAIN multi here.Bool :$install-precompile is rw = True
attribute to Zef::Client:$install-precompile
through to create the new install client hereat this point the staging workflow is handled, but we have to handle the legacy workflow still
:precompile($!install-precompile)
to this .install callBool :$precompile = True
to this method signature:$precompile
through this call to.install(...)
Bool :$precompile = True
to this method signature:$precompile
to this method call--/install-precompile Do not precompile module during installation
--/install-precompile
(don't forget to update the comment) to ensure the flag itself doesn't break anything when used.