Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Copilot Lvl 2
Message 1 of 3

[BUG] Perl include path @INC on Windows-latest contains only linux paths

Solved! Go to Solution.

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)"

 

See: https://github.com/ldorau/pmdk/commit/baf51f10f7de53fa09549e0a27cc0e1e57658520/checks?check_suite_id...

2 Replies
Solution
GitHub Partner
Message 2 of 3

Re: [BUG] Perl include path @INC on Windows-latest contains only linux paths

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.   

Perl path.png   

Copilot Lvl 2
Message 3 of 3

Re: [BUG] Perl include path @INC on Windows-latest contains only linux paths

Yes, adding Perl to Path resolves the issue, but anyway @INC should not contain linux paths on a windows runner...