# Syntax error during job setup using Golang

**URL:** <https://travis-ci.community/t/syntax-error-during-job-setup-using-golang/2164>\
**Category:** Go\
**Tags:** bug\
**Created:** [February 6, 2019, 10:06pm UTC](https://travis-ci.community/t/syntax-error-during-job-setup-using-golang/2164 "2019-02-06T22:06:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![xcoulon](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/xcoulon/32/525_2.png) [@xcoulon](https://travis-ci.community/u/xcoulon)\
**Post date:** [February 6, 2019, 10:06pm UTC](https://travis-ci.community/t/syntax-error-during-job-setup-using-golang/2164/1 "2019-02-06T22:06:59Z")

</div>

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](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](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](https://github.com/travis-ci/travis-ci/issues) ?)

---

<div class="post-metadata">

**Author:** ![meatballhat](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/meatballhat/32/37_2.png) [@meatballhat](https://travis-ci.community/u/meatballhat)\
**Post date:** [February 7, 2019, 9:30pm UTC](https://travis-ci.community/t/syntax-error-during-job-setup-using-golang/2164/2 "2019-02-07T21:30:01Z")

</div>

The production code (as of ~30m ago) ensures all `export` invocations are properly escaped 👍

---

<div class="post-metadata">

**Author:** ![xcoulon](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/xcoulon/32/525_2.png) [@xcoulon](https://travis-ci.community/u/xcoulon)\
**Post date:** [February 8, 2019, 7:13am UTC](https://travis-ci.community/t/syntax-error-during-job-setup-using-golang/2164/3 "2019-02-08T07:13:13Z")

</div>

great! thanks @meatballhat!
