Perl / docker-perl-tester

Docker images with pre-installed test modules and test dependencies for CPAN modules

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

5.24 and earlier don’t have .git/ ?

FGasper opened this issue · comments

https://github.com/FGasper/p5-TOML-XS/actions/runs/731758471

^ If you look at the failures here, they all fail because there’s no .git/ directory.

5.26:
image
https://github.com/FGasper/p5-TOML-XS/runs/2302718045?check_suite_focus=true

5.24:
image
https://github.com/FGasper/p5-TOML-XS/runs/2302718053?check_suite_focus=true

Is this an intentional difference between the images?

Thank you!

It looks like the checkout action doesn't like the version of git that it's finding.

https://github.com/FGasper/p5-TOML-XS/runs/2302718053?check_suite_focus=true#step:3:25

Not quite sure what's going on there, since they all use the same base Ubuntu.

Weird. Yeah, even when I put apt upgrade git as the first action it says 2.11 is already the latest available git.

Actually the 5.24 ones report being on stretch; 5.26 report buster. @oalders

The checkout action cannot find git >= 2.18 and so use the API to download a tarball
this why you have no .git set...

You would have to initialize the git repo and set the submodule if needed manually
if you cannot update to 2.18

https://github.com/FGasper/p5-TOML-XS/runs/2313744629?check_suite_focus=true#step:6:25

Deleting the contents of '/__w/p5-TOML-XS/p5-TOML-XS'
The repository will be downloaded using the GitHub REST API
To create a local Git repository instead, add Git 2.18 or higher to the PATH

IMO this is not an issue with the image but the way git checkout action works...
@FGasper I am going to close this case as this is not related to the images themselves but to the version of git available from the distro.

We probably want to rebuild the images with a more modern git binary... I guess that GitHub does not use older version of git due to CVEs