gugod / App-perlbrew

Manage perl installations in your $HOME
https://perlbrew.pl
Other
719 stars 216 forks source link

Let `install` hint the user to do `init`. #751

Closed gugod closed 2 years ago

gugod commented 2 years ago

... if PERLBREW_ROOT is missing.

Fixes RT-57669

When perlbrew install $something is run before PERLBREW_ROOT (~/perl5) is made, now it should show the following error message to kindly request user to run perlbrew initonce

# PERLBREW_ROOT=/tmp/nonexist perlbrew install perl-5.37.2
ERROR: perlbrew root /tmp/nonexist does not exist. Run `perlbrew init` to prepare it first.
coveralls commented 2 years ago

Coverage Status

Coverage decreased (-0.05%) to 77.978% when pulling ba06b6cb4e25124e807a82a9431a61f7f371a85e on rt-57669-install-check into b6d6433064d1e3a5f60c15197539970233e8feb8 on develop.