Syntax error during job setup using Golang

bug

#1

My latest build with Golang on Windows failed and I found the following error message in the logs:

/c/Users/travis/.travis/functions: eval: line 104: syntax error near unexpected token `('
/c/Users/travis/.travis/functions: eval: line 104: `export PATH=/c/Users/travis/gopath/bin:/c/Users/travis/.gimme/versions/go1.9.7.windows.amd64/bin:/c/Users/travis/bin:/bin:/usr/bin:/c/tools/ruby25/bin:/c/Windows/system32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0:/c/Windows/System32/OpenSSH:/c/ProgramData/GooGet:/c/Program Files/Google/Compute Engine/metadata_scripts:/c/Program Files (x86)/Google/Cloud SDK/google-cloud-sdk/bin:/c/Program Files/Google/Compute Engine/sysprep:/c/Program Files/Docker:/c/ProgramData/chocolatey/bin:/c/Program Files/CMake/bin:/c/Program Files/Git/cmd:/c/Program Files/LLVM/bin:/c/Program Files/dotnet:/c/Users/travis/AppData/Local/Microsoft/WindowsApps:/c/ProgramData/chocolatey/lib/mingw/tools/install/mingw64/bin '

I’m not sure if this is the root cause of the error that breaks the build a few steps after, though:

$ make deps
dep ensure -v
The command "make deps" failed and exited with 2 during .

The same error happens with 3 versions of Golang (1.9, 1.10 and 1.11)
Source: https://travis-ci.org/bytesparadise/libasciidoc/jobs/489746129#L20-L22

For the record, my previous build on Windows that passed was https://travis-ci.org/bytesparadise/libasciidoc/jobs/484701371 and it did not have the error message reported above

Is this a known issue or should I open a new one (on https://github.com/travis-ci/travis-ci/issues ?)


#2

The production code (as of ~30m ago) ensures all export invocations are properly escaped :+1:


#3

great! thanks @meatballhat!