rakudo / star

Rakudo Star (Raku distribution)
https://rakudo.org/
Artistic License 2.0
265 stars 41 forks source link

6 modules failed to install when running rstar install #165

Closed Chaz6 closed 1 year ago

Chaz6 commented 3 years ago

After running rstar fetch and rstar install the following modules failed to install:-

The relevent log output for this is below.

[2021-01-09T17:28:17] Installing Log
No meta file located at /home/chaz/git/github.com_rakudo_star/src/rakudo-star-modules/Log/META6.json
  in sub MAIN at /home/chaz/git/github.com_rakudo_star/lib/install-module.raku line 25
  in block <unit> at /home/chaz/git/github.com_rakudo_star/lib/install-module.raku line 1

[2021-01-09T17:28:18] Installing Log-Colored
No meta file located at /home/chaz/git/github.com_rakudo_star/src/rakudo-star-modules/Log-Colored/META6.json
  in sub MAIN at /home/chaz/git/github.com_rakudo_star/lib/install-module.raku line 25
  in block <unit> at /home/chaz/git/github.com_rakudo_star/lib/install-module.raku line 1

[2021-01-09T17:28:19] Installing IO-Path-XDG
No meta file located at /home/chaz/git/github.com_rakudo_star/src/rakudo-star-modules/IO-Path-XDG/META6.json
  in sub MAIN at /home/chaz/git/github.com_rakudo_star/lib/install-module.raku line 25
  in block <unit> at /home/chaz/git/github.com_rakudo_star/lib/install-module.raku line 1

[2021-01-09T17:28:28] Installing Config
===SORRY!=== Error while compiling /home/chaz/git/github.com_rakudo_star/tmp/tmp.9hXRqt0NDu/vendor#sources/BBF3FC998A36C56C39E2D0162F09218846930732 (Config)
Could not find IO::Path::XDG in:
    inst#/home/chaz/.local/local/rakudo-star-20210701-2f53360a/share/perl6/vendor
    inst#/home/chaz/.local/local/rakudo-star-20210701-2f53360a/share/perl6/core
    ap#
    nqp#
    perl5#
at /home/chaz/git/github.com_rakudo_star/tmp/tmp.9hXRqt0NDu/vendor#sources/BBF3FC998A36C56C39E2D0162F09218846930732 (Config):7

  in sub MAIN at /home/chaz/git/github.com_rakudo_star/lib/install-module.raku line 27
  in block <unit> at /home/chaz/git/github.com_rakudo_star/lib/install-module.raku line 1

[2021-01-09T17:28:39] Installing Config-Parser-toml
No meta file located at /home/chaz/git/github.com_rakudo_star/src/rakudo-star-modules/Config-Parser-toml/META6.json
  in sub MAIN at /home/chaz/git/github.com_rakudo_star/lib/install-module.raku line 25
  in block <unit> at /home/chaz/git/github.com_rakudo_star/lib/install-module.raku line 1

[2021-01-09T17:28:42] Installing Config-Parser-yaml
No meta file located at /home/chaz/git/github.com_rakudo_star/src/rakudo-star-modules/Config-Parser-yaml/META6.json
  in sub MAIN at /home/chaz/git/github.com_rakudo_star/lib/install-module.raku line 25
  in block <unit> at /home/chaz/git/github.com_rakudo_star/lib/install-module.raku line 1
Tyil commented 3 years ago

The No meta file located seems to indicate that fetch failed to actually download the sources. Do you have the logs of fetch, and can you reproduce this with RSTAR_DEBUG=1 set?

Chaz6 commented 3 years ago

Hiya, I deleted the folders and re-ran rstar fetch and I see output like this:-

[2021-01-12T17:20:39] Cloning https://git.tyil.nl/raku/IO::Path::XDG@v0.2.0 to /home/chaz/git/github.com_rakudo_star/src/rakudo-star-modules/IO-Path-XDG
fatal: ambiguous argument 'v0.2.0': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
fatal: ambiguous argument '': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
Tyil commented 3 years ago

I just pulled master on my laptop, ran the rstar clean -s; rstar fetch and can't reproduce this. I cannot reproduce this on my desktop at home either.

Chaz6 commented 3 years ago

I get this every time; is there any way to debug this further?

Tyil commented 3 years ago

You can try to give more information about your system, and try to git clone the repositories in question manually.

Tyil commented 3 years ago

fwiw, I just set up a new Debian (10) server, for use with the Raku bots, and I was not able to reproduce this again, using the latest master.

Chaz6 commented 3 years ago

Thanks, I will gather some more information and provide an update later today. The host system is CentOS 7 running a recent git version. Is there any way to have the tool output the exact commands it runs?

Tyil commented 3 years ago

A "recent" git means wildly different things depending on your situation, please try to be explicit in all cases. The git commands aren't exactly shown, but that can be added. For now, continue with the knowledge that it runs

git init
git remote add origin $url
git fetch origin -a
git reset --hard $branch
AntonOks commented 1 year ago

should be solved by 2fe3fcd