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

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=337927144

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.   


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

@yanjingzhu wondering if you still have a working workflow for this.

I tried the suggested solution, but no luck.

@hu13 It would be better if you could share your detail workflow yaml and logs in a new ticket .