-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
git-bash perl should not be first in path #123
Comments
This issue has not had any activity for 45 days and will be closed in 45 days if there continues to be no activity. |
@greghudson, please let us know if the issue is still actual |
Yes, the issue is still there. |
any updates or work around this? |
@greghudson @hu13 strawberry Perl is installed under |
@greghudson @hu13 Pr has been merged. The new VM image rollout with the changes will be next week. |
@greghudson @hu13 the image has been deployed. Could you check that the correct version of Perl is in the PATH? |
If using powershell on windows runner, it is correct.
|
I can confirm that Strawberry Perl is first in the path for a cmd shell, and I no longer need to manually put it first.
That might be unavoidable from the perspective of runner setup. The bad Perl comes from the git-bash package, and the git-bash bash might be putting the git-bash bindir first in the path at startup. This problem would of course go away if the git-bash Perl handled newlines correctly. I will about filing an issue in the appropriate place, if there isn't one already. |
For anyone else wondering, it's actually under |
For posterity, I fixed this problem in Git Bash by making sure Strawberry Perl is first in PATH. |
Describe the bug
The Windows runners have two versions of Perl installed. Strawberry Perl should be first in the default path ahead of git-bash Perl because it handles Windows newlines better.
Virtual environments affected
Expected behavior
The default Perl should be able to read native text files line by line, using "chop" or "chomp" to remove the line separator, and not have extraneous CR characters behind.
Actual behavior
Run a Perl script like:
over a text file with Windows newlines using the default Perl, and observe that the line lengths are wrong. Try again with Strawberry Perl and note that the lengths are correct.
(For comparison, Appveyor has a working Perl first in the default path on its Windows runners. I'm not sure which port it is since it's just installed under C:\Perl. Might be ActiveState Perl.)
The text was updated successfully, but these errors were encountered: