tag:help.appveyor.com,2012-11-13:/discussions/questions/33918-ubuntu-work-image-pre-installed-software-golangAppVeyor: Discussion 2019-04-03T21:00:54Ztag:help.appveyor.com,2012-11-13:Comment/468895092019-01-31T15:38:38Z2019-01-31T15:38:38ZUbuntu Work Image Pre-Installed Software - Golang<div><p>You have to add <code>stack</code> directive to appveyor.yml<br></p>
<pre>
<code>stack: go 1.10</code>
</pre>
There is example in our docs: <a href="https://www.appveyor.com/docs/lang/go/#linux">https://www.appveyor.com/docs/lang/go/#linux</a><br>
Or you have to use Go Version Manager to choose Golang version you need before <code>go version</code> command:<br>
<pre>
<code>init:
- sh: gvm use go1.10</code>
</pre>
<p>You're right it is confusing that no golang set by default. We will fix this in next images update.</p></div>Wasa Pleshakovtag:help.appveyor.com,2012-11-13:Comment/468895092019-02-01T11:41:59Z2019-02-01T11:42:00ZUbuntu Work Image Pre-Installed Software - Golang<div><p>Thank you. I saw the stack directive, but I wasn't using a yml file and wasn't sure how to use the directive using the web interface.</p></div>Russeltag:help.appveyor.com,2012-11-13:Comment/468895092019-02-01T19:26:25Z2019-02-01T19:26:25ZUbuntu Work Image Pre-Installed Software - Golang<div><p>Right now <code>stack</code> is YAML-only feature. And also it works only with Linux builds. We plan to make it work on Windows as well soon. Regarding UI, we plan to expose it in UI too, but we cannot provide a ETA. So to use it you need to switch to YAML (which is not a bad thing -- you can see most of settings at once and track changes in source control).</p></div>Ilya Finkelshteyn