Skip to content

ebirah setup command is broken #5

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

Open
jonasbn opened this issue May 2, 2020 · 4 comments
Open

ebirah setup command is broken #5

jonasbn opened this issue May 2, 2020 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@jonasbn
Copy link
Owner

jonasbn commented May 2, 2020

In experimental branch enabling the xtest command, I tried:

$ docker run --rm ebirah xtest
no configuration (e.g, dist.ini) found at /usr/local/lib/perl5/site_perl/5.30.2/Dist/Zilla/App.pm line 145. 
no configuration (e.g, dist.ini) found

So I tried:

$ docker run --rm ebirah setup

It emits:

Invalid selection, please try again: Invalid selection, please try again: Invalid selection, please try again: Invalid selection, please try again: Invalid selection, please try again: Invalid selection, please try again: Invalid selection, please try again: Invalid selection, please try again: Invalid selection, please try again: Invalid selection, please try again: Invalid selection, please try again: Invalid selection, please try again: Invalid selection, please try again: Invalid selection, please try again: Invalid selection, please try again: Invalid selection, please try again: Invalid selection, please try again: Invalid selection, please try again: Invalid selection, please try again: Invalid selection, please try again: Invalid selection, please try again: Invalid selection, please try again: Invalid selection, please try again: Invalid selection, please try again: Invalid selection, please try again: Invalid selection, please try again: Invalid selection, please try again: Invalid selection, please try again: Invalid selection, please try again: Invalid selection, please try again: Invalid selection, please try again: Invalid selection, please try again: Invalid selection, please try again: Invalid selection, please try again: Invalid selection, please try again: Invalid selection, please try again: Invalid selection, please try again: Invalid selection, please try again: Invalid selection, please try again: Invalid selection, please try again: Invalid selection, please try again: Invalid selection, please try again: Invalid selection, please try again: Invalid selection, please try again: Invalid selection, please try again: Invalid selection, please try again: Invalid selection, please try again: Invalid selection, please try again: Invalid selection, please try again: Invalid selection, please try again: Invalid selection, please try again: Invalid selection, please try again:

And the running Docker container has to be killed.

@jonasbn jonasbn added the bug Something isn't working label May 2, 2020
@jonasbn jonasbn self-assigned this May 2, 2020
@jonasbn
Copy link
Owner Author

jonasbn commented May 2, 2020

As I documented you have to specify the directory.

$ docker run --rm --volume $PWD:/tmp ebirah:latest

So you can do:

$docker run --rm --volume $PWD:/tmp ebirah:latest xtest

It does however complain about missing xt.

Example:

± docker run --rm --volume $PWD:/tmp ebirah:latest xtest
[DZ] building distribution under .build/3LwcOfr_dw for installation
[DZ] beginning to build Date-Holidays-Super
[DZ] guessing dist's main_module is lib/Date/Holidays/Super.pm
[@Filter/ExtraTests] rewriting author test xt/author/critic.t
[@Filter/ExtraTests] rewriting author test xt/author/pod-coverage.t
[@Filter/ExtraTests] rewriting author test xt/author/pod-syntax.t
[@Filter/ExtraTests] rewriting release test xt/release/kwalitee.t
[@Filter/ExtraTests] rewriting release test xt/release/cpan-changes.t
[@Filter/ExtraTests] rewriting release test xt/release/meta-json.t
[Prereqs::FromCPANfile] Parsing 'cpanfile' to extract prereqs
[DZ] writing Date-Holidays-Super in .build/3LwcOfr_dw
[MarkdownInRoot] overriding README.md in root
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for Date::Holidays::Super
Writing MYMETA.yml and MYMETA.json
cp lib/Date/Holidays/Super.pm blib/lib/Date/Holidays/Super.pm
Created MYMETA.yml and MYMETA.json
Creating new 'Build' script for 'Date-Holidays-Super' version '0.05'
Building Date-Holidays-Super
Cannot detect source of 'xt'! at /usr/local/lib/perl5/5.30.2/TAP/Parser/IteratorFactory.pm line 256.
	TAP::Parser::IteratorFactory::detect_source(TAP::Parser::IteratorFactory=HASH(0x55af48d41a98), TAP::Parser::Source=HASH(0x55af48c1b878)) called at /usr/local/lib/perl5/5.30.2/TAP/Parser/IteratorFactory.pm line 211
	TAP::Parser::IteratorFactory::make_iterator(TAP::Parser::IteratorFactory=HASH(0x55af48d41a98), TAP::Parser::Source=HASH(0x55af48c1b878)) called at /usr/local/lib/perl5/5.30.2/TAP/Parser.pm line 472
	TAP::Parser::_initialize(TAP::Parser=HASH(0x55af48c1b530), HASH(0x55af48af1c28)) called at /usr/local/lib/perl5/5.30.2/TAP/Object.pm line 55
	TAP::Object::new("TAP::Parser", HASH(0x55af48af1c28)) called at /usr/local/lib/perl5/5.30.2/TAP/Object.pm line 130
	TAP::Object::_construct(TAP::Harness=HASH(0x55af489f6108), "TAP::Parser", HASH(0x55af48af1c28)) called at /usr/local/lib/perl5/5.30.2/TAP/Harness.pm line 852
	TAP::Harness::make_parser(TAP::Harness=HASH(0x55af489f6108), TAP::Parser::Scheduler::Job=HASH(0x55af48bf0e38)) called at /usr/local/lib/perl5/5.30.2/TAP/Harness.pm line 651
	TAP::Harness::_aggregate_single(TAP::Harness=HASH(0x55af489f6108), TAP::Parser::Aggregator=HASH(0x55af489f6840), TAP::Parser::Scheduler=HASH(0x55af48bf0e68)) called at /usr/local/lib/perl5/5.30.2/TAP/Harness.pm line 743
	TAP::Harness::aggregate_tests(TAP::Harness=HASH(0x55af489f6108), TAP::Parser::Aggregator=HASH(0x55af489f6840), "xt") called at /usr/local/lib/perl5/5.30.2/TAP/Harness.pm line 558
	TAP::Harness::__ANON__() called at /usr/local/lib/perl5/5.30.2/TAP/Harness.pm line 571
	TAP::Harness::runtests(TAP::Harness=HASH(0x55af489f6108), "xt") called at /usr/local/lib/perl5/5.30.2/App/Prove.pm line 548
	App::Prove::_runtests(App::Prove=HASH(0x55af489dcc08), HASH(0x55af4465ee28), "xt") called at /usr/local/lib/perl5/5.30.2/App/Prove.pm line 506
	App::Prove::run(App::Prove=HASH(0x55af489dcc08)) called at /usr/local/lib/perl5/site_perl/5.30.2/Dist/Zilla/App/Command/xtest.pm line 144
	Dist::Zilla::App::Command::xtest::execute(Dist::Zilla::App::Command::xtest=HASH(0x55af443b0080), Getopt::Long::Descriptive::Opts::__OPT__::2=HASH(0x55af444f8de0), ARRAY(0x55af440c6888)) called at /usr/local/lib/perl5/site_perl/5.30.2/App/Cmd.pm line 468
	App::Cmd::execute_command(Dist::Zilla::App=HASH(0x55af43fb2550), Dist::Zilla::App::Command::xtest=HASH(0x55af443b0080), Getopt::Long::Descriptive::Opts::__OPT__::2=HASH(0x55af444f8de0)) called at /usr/local/lib/perl5/site_perl/5.30.2/App/Cmd.pm line 321
	App::Cmd::run("Dist::Zilla::App") called at /usr/local/bin/dzil line 12

@jonasbn jonasbn changed the title ebirah setup is broken ebirah setup command is broken May 3, 2020
@jonasbn
Copy link
Owner Author

jonasbn commented May 3, 2020

It seems the specification of the volume, does not work for the setup command

@jonasbn jonasbn pinned this issue Nov 27, 2020
@glasswalk3r
Copy link
Contributor

It seems the specification of the volume, does not work for the setup command

Not sure what are you trying to achieve, but it does work:


alceu@temp:~/Projects/ebirah$ docker container run --volume "$PWD:/tmp" --rm jonasbn/ebirah xtest
no configuration (e.g, dist.ini) found at /home/runner/perl5/lib/perl5/Dist/Zilla/App.pm line 147.
no configuration (e.g, dist.ini) found
alceu@temp:~/Projects/ebirah$ docker container run --volume "$PWD:/tmp" --rm jonasbn/ebirah setup
What's your name?  : Use of uninitialized value $input in scalar chomp at /home/runner/perl5/lib/perl5/Dist/Zilla/Chrome/Term.pm line 152.
What's your email address?  : Use of uninitialized value $input in scalar chomp at /home/runner/perl5/lib/perl5/Dist/Zilla/Chrome/Term.pm line 152.
Who, by default, holds the copyright on your code?  : Use of uninitialized value $input in scalar chomp at /home/runner/perl5/lib/perl5/Dist/Zilla/Chrome/Term.pm line 152.
What license will you use by default (Perl_5, BSD, etc.)?  [Perl_5]: Use of uninitialized value $realname in concatenation (.) or string at /home/runner/perl5/lib/perl5/Dist/Zilla/App/Command/setup.pm line 136.
Use of uninitialized value $email in concatenation (.) or string at /home/runner/perl5/lib/perl5/Dist/Zilla/App/Command/setup.pm line 137.
Use of uninitialized value $c_holder in concatenation (.) or string at /home/runner/perl5/lib/perl5/Dist/Zilla/App/Command/setup.pm line 141.
config.ini file created!

@jonasbn
Copy link
Owner Author

jonasbn commented Apr 15, 2024

Thanks @glasswalk3r I will have a second look

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants