Skip to content

Commit

Permalink
.appveyor.yml: Put /usr/bin first in PATH
Browse files Browse the repository at this point in the history
The previous commit failed with the same errors as before:

  https://ci.appveyor.com/project/mbland/go-script-bash/build/v1.6.0.3

Upon closer inspection, both of the failing tests executed `perl`.
Indeed, the Appveyor images have Perl installed separately from Git and
available in the PATH:

  https://www.appveyor.com/docs/build-environment/#perl

This Perl is most likely doing the Unix-to-native path translation. This
change attempts to fix the tests by ensuring the MSYS2 Perl that comes
with Git for Windows will get executed instead.
  • Loading branch information
mbland committed Sep 30, 2017
1 parent 34452a8 commit 17ebdc8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .appveyor.yml
Expand Up @@ -11,4 +11,5 @@ build: off
test_script:
- where bash
- bash --version
- bash -c './go test'
- bash -c 'echo PATH="$PATH"'
- bash -c 'PATH="/usr/bin:$PATH" ./go test'

0 comments on commit 17ebdc8

Please sign in to comment.