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 build' and 'dzil test' fail #36

Open
jkeenan opened this issue Sep 3, 2024 · 10 comments
Open

'dzil build' and 'dzil test' fail #36

jkeenan opened this issue Sep 3, 2024 · 10 comments

Comments

@jkeenan
Copy link

jkeenan commented Sep 3, 2024

Today I forked the module-build-tiny repository and cloned it locally. I installed prerequisites per dzil authordeps --missing | cpanm against perl-5.40.0. I then called the following:

[module-build-tiny] 2009 $ dzil build
[DZ] beginning to build Module-Build-Tiny
[DZ] guessing dist's main_module is lib/Module/Build/Tiny.pm
[GitHub::Meta] Getting GitHub repository info
[DZ] writing Module-Build-Tiny in Module-Build-Tiny-0.001
[OnlyCorePrereqs] detected a configure requires dependency that is not in core: Module::Build::Tiny
[OnlyCorePrereqs] aborting build due to invalid dependencies
[OnlyCorePrereqs] aborting build due to invalid dependencies at inline delegation in Dist::Zilla::Plugin::OnlyCorePrereqs for logger->log_fatal (attribute declared in /home/jkeenan/perl5/perlbrew/perls/perl-5.40.0/lib/site_perl/5.40.0/Dist/Zilla/Role/Plugin.pm at line 61) line 18.

[module-build-tiny] 2010 $ dzil test
[DZ] building distribution under .build/agTtei55sd for installation
[DZ] beginning to build Module-Build-Tiny
[DZ] guessing dist's main_module is lib/Module/Build/Tiny.pm
[GitHub::Meta] Getting GitHub repository info
[DZ] writing Module-Build-Tiny in .build/agTtei55sd
[OnlyCorePrereqs] detected a configure requires dependency that is not in core: Module::Build::Tiny
[OnlyCorePrereqs] aborting build due to invalid dependencies
[OnlyCorePrereqs] aborting build due to invalid dependencies at inline delegation in Dist::Zilla::Plugin::OnlyCorePrereqs for logger->log_fatal (attribute declared in /home/jkeenan/perl5/perlbrew/perls/perl-5.40.0/lib/site_perl/5.40.0/Dist/Zilla/Role/Plugin.pm at line 61) line 18.

Can you identify what's going wrong? Thanks.

@jkeenan
Copy link
Author

jkeenan commented Sep 3, 2024

Today I also attempted to install Module::Build::Tiny against perl at v5.41.3-7-g869f245507 on a FreeBSD server. As you can see from the two CPANtesters results here, I first failed because I did not have CPAN::Requirements::Dynamic installed -- something which I would have expected to have been detected earlier in the cpan process. Once I separately installed that module, the Module::Build::Tiny installation proceeded successfully.

I don't know whether that problem is the same or different from what dzil was reporting.

@sdt
Copy link

sdt commented Sep 4, 2024

Similar results here:

Building and testing Module-Build-Tiny-0.049 ... cp lib/Module/Build/Tiny.pm blib/lib/Module/Build/Tiny.pm
t/simple.t .. Can't locate CPAN/Requirements/Dynamic.pm in @INC (you may need to install the CPAN::Requirements::Dynamic module) (@INC entries checked: inc /root/.cpanm/work/1725413281.1/Module-Build-Tiny-0.049/blib/arch /root/.cpanm/work/1725413281.1/Module-Build-Tiny-0.049/blib/lib /usr/local/lib/perl5/site_perl/5.38.2/x86_64-linux-gnu /usr/local/lib/perl5/site_perl/5.38.2 /usr/local/lib/perl5/vendor_perl/5.38.2/x86_64-linux-gnu /usr/local/lib/perl5/vendor_perl/5.38.2 /usr/local/lib/perl5/5.38.2/x86_64-linux-gnu /usr/local/lib/perl5/5.38.2 .) at /root/.cpanm/work/1725413281.1/Module-Build-Tiny-0.049/blib/lib/Module/Build/Tiny.pm line 194.

t/simple.t .. 1/? 
#   Failed test 'Ran Build.PL'
#   at t/simple.t line 75.
#          got: '512'
#     expected: '0'
load_file() requires a valid, readable filename at t/simple.t line 140.
# Tests were run but no plan was declared and done_testing() was not seen.
# Looks like your test exited with 2 just after 22.

@firefart
Copy link

firefart commented Sep 4, 2024

Same here, my docker builds keep failing on LWP::Protocol::https as down the dependency chain Module-Build-Tiny-0.049 fails with this test. Using perl v5.40.0

Building and testing Module-Build-Tiny-0.049
cp lib/Module/Build/Tiny.pm blib/lib/Module/Build/Tiny.pm
Can't locate CPAN/Requirements/Dynamic.pm in @INC (you may need to install the CPAN::Requirements::Dynamic module) (@INC entries checked: inc /root/.cpanm/work/1725433570.679/Module-Build-Tiny-0.049/blib/arch /root/.cpanm/work/1725433570.679/Module-Build-Tiny-0.049/blib/lib /usr/local/lib/perl5/site_perl/5.40.0/x86_64-linux-gnu /usr/local/lib/perl5/site_perl/5.40.0 /usr/local/lib/perl5/vendor_perl/5.40.0/x86_64-linux-gnu /usr/local/lib/perl5/vendor_perl/5.40.0 /usr/local/lib/perl5/5.40.0/x86_64-linux-gnu /usr/local/lib/perl5/5.40.0 .) at /root/.cpanm/work/1725433570.679/Module-Build-Tiny-0.049/blib/lib/Module/Build/Tiny.pm line 194.

#   Failed test 'Ran Build.PL'
#   at t/simple.t line 75.
#          got: '512'
#     expected: '0'
load_file() requires a valid, readable filename at t/simple.t line 140.
# Tests were run but no plan was declared and done_testing() was not seen.
# Looks like your test exited with 2 just after 22.
t/simple.t ..
Dubious, test returned 2 (wstat 512, 0x200)
Failed 1/22 subtests

Test Summary Report
-------------------
t/simple.t (Wstat: 512 (exited 2) Tests: 22 Failed: 1)
  Failed test:  1
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
Files=1, Tests=22,  0 wallclock secs ( 0.01 usr  0.00 sys +  0.18 cusr  0.01 csys =  0.20 CPU)
Result: FAIL
-> FAIL Installing Module::Build::Tiny failed. See /root/.cpanm/work/1725433570.679/build.log for details. Retry with --force to force install it.
-> FAIL Installing the dependencies failed: Module 'Module::Build::Tiny' is not installed
-> FAIL Bailing out the installation for HTTP-Daemon-6.16.

@firefart
Copy link

firefart commented Sep 4, 2024

Looks like this is related to e7db0c7

If I cpanm install CPAN::Requirements::Dynamic the error is gone.

@Leont
Copy link
Member

Leont commented Sep 4, 2024

Yeah I should have tested that change better, will revert for now.

@sdt
Copy link

sdt commented Sep 5, 2024

0.050 has fixed it for me. Thank you @Leont !

@jkeenan
Copy link
Author

jkeenan commented Sep 5, 2024

Unfortunately, 0.050 doesn't get me any farther. Results just now:

[module-build-tiny] 2029 $ dzil build
[DZ] beginning to build Module-Build-Tiny
[Git::NextVersion] Bumping version from 0.050 to 0.051
[DZ] guessing dist's main_module is lib/Module/Build/Tiny.pm
[GitHub::Meta] Getting GitHub repository info
[DZ] writing Module-Build-Tiny in Module-Build-Tiny-0.051
[OnlyCorePrereqs] detected a configure requires dependency that is not in core: Module::Build::Tiny
[OnlyCorePrereqs] aborting build due to invalid dependencies
[OnlyCorePrereqs] aborting build due to invalid dependencies at inline delegation in Dist::Zilla::Plugin::OnlyCorePrereqs for logger->log_fatal (attribute declared in /home/jkeenan/perl5/perlbrew/perls/perl-5.40.0/lib/site_perl/5.40.0/Dist/Zilla/Role/Plugin.pm at line 61) line 18.
[module-build-tiny] 2030 $ dzil test
[DZ] building distribution under .build/k_hgjp5WR4 for installation
[DZ] beginning to build Module-Build-Tiny
[Git::NextVersion] Bumping version from 0.050 to 0.051
[DZ] guessing dist's main_module is lib/Module/Build/Tiny.pm
[GitHub::Meta] Getting GitHub repository info
[DZ] writing Module-Build-Tiny in .build/k_hgjp5WR4
[OnlyCorePrereqs] detected a configure requires dependency that is not in core: Module::Build::Tiny
[OnlyCorePrereqs] aborting build due to invalid dependencies
[OnlyCorePrereqs] aborting build due to invalid dependencies at inline delegation in Dist::Zilla::Plugin::OnlyCorePrereqs for logger->log_fatal (attribute declared in /home/jkeenan/perl5/perlbrew/perls/perl-5.40.0/lib/site_perl/5.40.0/Dist/Zilla/Role/Plugin.pm at line 61) line 18.

@Leont
Copy link
Member

Leont commented Sep 5, 2024

What's your version of Dist::Zilla::Plugin::ModuleBuildTiny? And does upgrading it fix the issue? Probably you need at least 0.016.

@jkeenan
Copy link
Author

jkeenan commented Sep 5, 2024

Dist::Zilla::Plugin::ModuleBuildTiny

$ perl -MDist::Zilla::Plugin::ModuleBuildTiny -E 'say $Dist::Zilla::Plugin::ModuleBuildTiny::VERSION;'
0.017

@Leont
Copy link
Member

Leont commented Sep 7, 2024

Weird, I can't explain or reproduce that.

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

4 participants