Any way to easily ensure zef is pulling latest versions of raku modules?

203 Views Asked by At

I recently filed an issue here about zef downloading a stale version of a module, NativeHelpers::Callback which was failing when I tried to install it with zef install NativeHelpers::Callback. I had to clone the module to my local machine from github and install it from there to get it to work.

I'm slightly confused as to how/why this happened with this module. The raku.land website provides a link to the github repo and yet REA only has version 0.1 tarballed.. But when I open up the META6.json file for the module on github, it says version 0.2. I'm wondering why zef does not recognize and find this new version? And why does raku.land still shown as a CPAN module on raku.land when it's no longer on CPAN?

And my bigger question is how do I ensure zef installs the newest versions of modules? Is the problem I ran into here common? Should I manually check each module to ensure I'm getting the latest version?

Thanks.

1

There are 1 best solutions below

0
On

I think this is because the owner of the module hasn't pushed the version 0.2 dist yet. You will have to build from source until the owner runs fez upload. It seems raku.land and the other sites to view dists, only know of a 0.1.

As far as I know, zef will only distribute versions that have been uploaded. It does not keep track of the version within META6.json files on git, it only sees the META6.json when the owner uploads.

You could also install the version on GitHub with:

zef install https://github.com/CurtTilmes/raku-nativehelpers-callback