Subject: | modulebuildrc overrides parameters given on the command-line |
It would seem that any attempt at providing the install_base command-
line option gets ignored. I believe that if a command-line parameter is
provided it should override the configured rc setting.
For the following examples I'm assuming .modulebuildrc reads as such:
install --install_path /tmp/doom
Example 1 works as would be expected, specifying no install_base on the
command_line makes M::B use the rc configured path.
$ perl Build.PL
# $self->install_base is undefined
$ ./Build
# $self->install_base is undefined
$ ./Build install
# installed to modulebuildrc's specified location.
Example 2 specifying install_base during install does not override the
rc configured path.
$ perl Build.PL
# $self->install_base is undefined
$ ./Build
# $self->install_base is undefined
$ ./Build install --install_base=$HOME/foobar
# installed to modulebuildrc's specified location?? why not
$HOME/foobar?
Example 3 specifying install_base during Build_PL does not override the
rc configured path.
$ perl Build.PL --install_base=$HOME/foobar
# $self->install_base = $HOME/foobar
$ ./Build
# $self->install_base = $HOME/foobar
$ ./Build install --install_base=$HOME/foobar
# installed to modulebuildrc's specified location?? why not
$HOME/foobar?
This last example I'm demonstrating for completeness, frankly if this
doesn't happen, I know I can live with it.
Example 4 specifying install_base during build does not override the rc
configured path.
$ perl Build.PL
# $self->install_base is undefined
$ ./Build --install_base=$HOME/foobar
# $self->install_base = $HOME/foobar
$ ./Build install --install_base=$HOME/foobar
# installed to modulebuildrc's specified location?? why not
$HOME/foobar?