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

Cannot install Pod::To::Cache version 0.3.5 #313

Closed
atroxaper opened this issue Sep 3, 2019 · 10 comments
Closed

Cannot install Pod::To::Cache version 0.3.5 #313

atroxaper opened this issue Sep 3, 2019 · 10 comments

Comments

@atroxaper
Copy link

Context

Try to install the last version of Pod::To::Cache (0.3.5). If I try to zef install Pod::To::Cache I got 0.3.3 version. If I try to install 0.3.5 version then:

zef install 'Pod::To::Cached:ver<0.3.5>:auth<finanalyst>'
===> Searching for: Pod::To::Cached:ver<0.3.5>:auth<finanalyst>
===> Testing: Pod::To::Cached:ver<0.3.3>
# test pod extraction
# testing freeze
# Heavy duty test optional
===> Testing [OK] for Pod::To::Cached:ver<0.3.3>
===> Installing: Pod::To::Cached:ver<0.3.3>
!!!> Install failures: Pod::To::Cached:ver<0.3.5>:auth<finanalyst>

Expected Behavior

The last version of Pod::To::Cached should be installed

Actual Behavior

0.3.3 version installed or fail

Steps to Reproduce

zef install Pod::To::Cache

Your Environment

MacOs 10.14

  • perl6 -v
    This is Rakudo version 2019.07.1-254-g17d036ad4 built on MoarVM version 2019.07.1-134-ga37504d12 implementing Perl 6.d.
  • zef list --installed
Documentable:ver<1.0.9>:auth<github:perl6>:api<1>
File::Directory::Tree:auth<labster>
File::Find:ver<0.1>
File::Temp:ver<0.0.6>
File::Which:ver<1.0.1>
JSON::Class:ver<0.0.13>:auth<github:jonathanstowe>:api<1.0>
JSON::Fast:ver<0.10>
JSON::Marshal:ver<0.0.18>:auth<github:jonathanstowe>:api<1.0>
JSON::Name:ver<0.0.4>:auth<github:jonathanstowe>:api<1.0>
JSON::Unmarshal:ver<0.08>
LibraryMake:ver<1.0.0>:auth<github:retupmoca>
License::SPDX:ver<3.6.0>:auth<github:jonathanstowe>:api<1.0>
Linenoise:ver<0.1.1>:auth<Rob Hoelz>
META6:ver<0.0.23>:auth<github:jonathanstowe>:api<1.0>
Perl6::TypeGraph:ver<2.1.1>:auth<github:antoniogamiz>:api<2>
Pod::Load:ver<0.5.5>
Pod::To::HTML:ver<0.6.2>:auth<Perl 6>
Pod::Utilities:ver<0.0.1>
Shell::Command
Template::Mustache:ver<1.0.1>:auth<github:softmoth>
Terminal::Spinners:ver<1.3.0>:auth<github:ryn1x>
Test::META:ver<0.0.16>:auth<github:jonathanstowe>:api<1.0>
Test::Output:ver<1.001002>
URI:ver<0.3.0>
zef:ver<0.7.4>:auth<github:ugexe>:api<0>
zef search Pod::To::Cached
===> Found 2 results
-----------------------------------------------------------------------------------------------------------------------
ID|From                            |Package                                    |Description
-----------------------------------------------------------------------------------------------------------------------
0 |Zef::Repository::LocalCache     |Pod::To::Cached:ver<0.3.3>                 |Precompile a collection of pod files ..
1 |Zef::Repository::Ecosystems<p6c>|Pod::To::Cached:ver<0.3.5>:auth<finanalyst>|Precompile a collection of pod files ..
-----------------------------------------------------------------------------------------------------------------------
@ugexe
Copy link
Owner

ugexe commented Sep 3, 2019

Its failing during precompilation inside rakudo (outside of zef control). It is a bug in Pod::To::Cached

@ugexe ugexe closed this as completed Sep 3, 2019
@JJ
Copy link
Contributor

JJ commented Sep 3, 2019

@ugexe
Copy link
Owner

ugexe commented Sep 3, 2019

That doesn't mean there isn't a bug in the module. Does it test installation? No? Then how exactly can you say it is not?

@JJ
Copy link
Contributor

JJ commented Sep 3, 2019

Let's say it does, why does it try to install another version, which is not the one that was requested? Also, I'd appreciate you showed us how to get to that error.

@JJ
Copy link
Contributor

JJ commented Sep 3, 2019

I'm also installing it locally without a problem.

@ugexe
Copy link
Owner

ugexe commented Sep 3, 2019

It is not my job to do all the debugging for this. Instead i'd appreciate YOU figure it out -- i've already given you direction in that it isn't related to zef.

@JJ
Copy link
Contributor

JJ commented Sep 3, 2019

OK, let me see.

  • We ask zef to install 0.3.5+
  • zef instead tries to install 0.3.3 (for some reason)
  • Testing 0.3.3 is OK
  • But it says it fails to install 0.3.5 (of course, since it didnt' even try to download it).

You say that zef didn't install it because there was a bug (you don't say if it's in 0.3.3 or in 0.3.5). But what seems to say above is that it's failing to install something that it didn't actually download.
It's probably the case that there's some error in the META6.json that we are missing. But in that case it woule really be helpful if that specific error was pointed out so that we can debug it.

@ugexe
Copy link
Owner

ugexe commented Sep 3, 2019

So send a PR to rakudo to give helpful errors when a module is passed to .install. You also seem to think that unless I point out exactly what is wrong that I can't possibly know the bug is or isn't related to zef -- this is wrong.

@JJ
Copy link
Contributor

JJ commented Sep 3, 2019

I'm sorry, but I fail to understand how the bug that might or might not be in the mentioned module (and that is not found anywhere else) makes zef want to install a different version from the one requested.

@ugexe
Copy link
Owner

ugexe commented Sep 3, 2019

If that module had been released to cpan (or with any source-url that points to a specific version) then this would not be an issue.

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

3 participants