Skip to content

Commit 34452a8

Browse files
committed
.appveyor.yml: Fix breakage via bash -c
The following test cases failed in the initial build: https://ci.appveyor.com/project/mbland/go-script-bash/build/v1.6.0.1 log/log-command: fatal status for subcommand of command in another language vars: run perl script; _GO_* variables are exported The failures were due to `/tmp` getting expanded to `C:/Users/appveyor/AppData/Local/Temp/1` and `/c` getting expanded to `C:`. This is probably because running `bash ./go` directly is setting `BASH` and other variables using the native path format, rather than the MSYS2 Unix-like translation. Launching the `./go` script via `bash -c` should fix this, by ensuring `./go` launches inside a MSYS2 `bash` process that sets the paths to the Unix-like format.
1 parent c97855a commit 34452a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ build: off
1111
test_script:
1212
- where bash
1313
- bash --version
14-
- bash ./go test
14+
- bash -c './go test'

0 commit comments

Comments
 (0)