tag:help.appveyor.com,2012-11-13:/discussions/problems/16777-using-an-environment-variableAppVeyor: Discussion 2018-10-19T08:18:56Ztag:help.appveyor.com,2012-11-13:Comment/460832802018-09-14T17:21:30Z2018-09-14T17:21:30ZUsing an environment variable<div><p>By default, lines in appveyor.yml are interpreted by <code>cmd</code> which does not recognize <code>$env:</code> syntax.<br>
To use <code>powershell</code> to interpret lines change to</p>
<pre>
<code> - ps: $env:UWU_VERSION=git describe --tags --always --dirty
- ps: go build -o uwunote.exe -ldflags "-H windowsgui -X github.com/UwUNote/uwunote/internal/updates.AppVersion=$env:UWU_VERSION"</code>
</pre></div>Owen McDonnelltag:help.appveyor.com,2012-11-13:Comment/460832802018-09-14T20:04:36Z2018-09-14T20:04:36ZUsing an environment variable<div><p>Thanks!</p></div>marceloschr