Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dzil setup gives 'uninitialized...' warning if PAUSE password is not specified #721

Open
jimav opened this issue Feb 7, 2023 · 0 comments

Comments

@jimav
Copy link

jimav commented Feb 7, 2023

dzil setup asks "Do you want to enter your PAUSE account dtails?";
if the reply is "yes" but the user just presses ENTER when asked for their PAUSE password, an error occurs:

Use of uninitialized value $input in scalar chomp at <home>/perl5/lib/perl5/Dist/Zilla/Chrome/Term.pm line 152, <FIN> line 8.

$HOME/.dzil/config.ini is created anyway, with

[%PAUSE]
username = jimavera

(with no password = ...).

dzil (Dist::Zilla::App) version 6.029

====
UPDATE: The resulting config.ini does not work: dzil new <Module> fails with Your global configuration file couldn't be loaded. It's a file matching ~/.dzil/config.*. No other error information is given, but removing the [%PAUSE] section containing only username fixed the problem.

Therefore IMO dzil setup should hard fail or at least inform the user that a PAUSE password is required if any PAUSE configuration stuff is specified at all (assuming that's the case, and the dzil new error is not itself a bug.) And not emit the "uninitialized..." warning.

Actually I was hoping that a PAUSE username could be stored but not the pw.

@jimav jimav changed the title dzil setup should allow PAUSE password to not be specified dzil setup gives 'uninitialized...' warning if PAUSE password is not specified Feb 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant