[BUG] Perl include path @INC on Windows-latest contains only linux paths #26175
-
BUG: Perl include path @inc on Windows-latest contains only Linux paths : A message from Windows-latest : “Can’t locate Text/Diff.pm in @inc (you may need to install the Text::Diff module) (@inc contains: /usr/lib/perl5/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl )” |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
In github hosted windows runners, it don’t add Perl to Path environment variable. I checked your workflow, you have added a step with echo “::add-path::$Env:perl” to add Perl to Path. This can resolve this issue. |
Beta Was this translation helpful? Give feedback.
-
Yes, adding Perl to Path resolves the issue, but anyway @inc should not contain linux paths on a windows runner… |
Beta Was this translation helpful? Give feedback.
-
@yanjingzhu wondering if you still have a working workflow for this. I tried the suggested solution, but no luck. |
Beta Was this translation helpful? Give feedback.
-
@hu13 It would be better if you could share your detail workflow yaml and logs in a new ticket . |
Beta Was this translation helpful? Give feedback.
In github hosted windows runners, it don’t add Perl to Path environment variable. I checked your workflow, you have added a step with echo “::add-path::$Env:perl” to add Perl to Path. This can resolve this issue.