Go 1.4 support

Keiji Yoshida's Avatar

Keiji Yoshida

14 Dec, 2014 03:10 PM

I noticed that the version of Go on AppVeyor is still 1.3. Are there any ways to use Go 1.4 on AppVeyor now?

  1. Support Staff 1 Posted by Feodor Fitsner on 14 Dec, 2014 04:47 PM

    Feodor Fitsner's Avatar

    You may just download Go 1.4 zip package during the build and extract it to C:\Go folder. Add these commands to your install phase:

    install:
      - rd C:\Go /s /q
      - appveyor DownloadFile https://storage.googleapis.com/golang/go1.4.windows-386.zip
      - 7z x go1.4.windows-386.zip -oC:\ >nul
    
  2. 2 Posted by Keiji Yoshida on 15 Dec, 2014 12:26 AM

    Keiji Yoshida's Avatar

    Thanks! I'll try it!

  3. 3 Posted by Joel Scoble on 19 Feb, 2015 06:09 PM

    Joel Scoble's Avatar

    It would be helpful if AppVeyor could support 1.4 as it has fixes that affect Windows. This would save on AppVeyor bandwidth and resources that downloading and extracting 1.4 for testing would use.

  4. Support Staff 4 Posted by Feodor Fitsner on 19 Feb, 2015 06:34 PM

    Feodor Fitsner's Avatar

    Sure, will deploy it this week.

  5. 5 Posted by Joel Scoble on 19 Feb, 2015 07:58 PM

    Joel Scoble's Avatar

    Feodor Fitsner: that is great news.

    Thank you.

  6. Support Staff 6 Posted by Feodor Fitsner on 20 Feb, 2015 05:10 AM

    Feodor Fitsner's Avatar

    It's been deployed.

    • Go 1.4.2 x86 (C:\go - default in PATH)
    • Go 1.4.2 x64 (C:\go-x64)
  7. 7 Posted by rjeczalik on 21 Feb, 2015 08:19 PM

    rjeczalik's Avatar

    Thanks for bumping Go version on your builders.

    One suggestion though - shouldn't the amd64 be the default one? Changing default Go target architecture from amd64 to 386 is going to break people's builds, those which use testing with -race as Go does not support -race on 386. Alternatively some notification to those affected, to put GOROOT: c:\go-x64 in theirs appveyor.yml configuration files.

  8. Support Staff 8 Posted by Feodor Fitsner on 21 Feb, 2015 08:37 PM

    Feodor Fitsner's Avatar

    Yeah, that's good to know, thanks.

    -Feodor

  9. 9 Posted by Owen Waller on 26 Feb, 2015 08:34 PM

    Owen Waller's Avatar

    Hi,

    And following up on rjeczalik's comment. The 64bit version should be a default on a 64bit OS.

    But, rather than set the environmental variables in the appveyor.yml, if I set them on a per project basis in the Settings/Environment screen as:

    GOROOT : C:\go-x64
    PATH : %GOROOT%\bin;%PATH%

    Then I should be using the 64bit/amd64 version of go.
    But as you can see from the build results - see the URL at the end - a call to go version tells me that it's windows/386 i.e. the 32 bit version.

    So I am still picking up the i386 version of go, not the amd64 version - which I need for go's race detector.

    Also as you can see from the build results the 64bit version of go's bin directory is the fist element in the PATH and so should override the 32bit version of go in c:\go\bin which is the last but 2 element in the PATH.

    Also if I set the environmental variables in the CMD scripts used to create the build, I get the same results.

    So something is up, but this is not behaving as I would expect.

  10. Support Staff 10 Posted by Feodor Fitsner on 26 Feb, 2015 08:45 PM

    Feodor Fitsner's Avatar

    Hi Owen,

    You should defined them as:

    GOROOT : C:\go-x64
    PATH : C:\go-x64\bin;%PATH%
    

    However, I agree that it makes sense having x64 by default. We are going to change that with today's deployment:

    • C:\go will contain x64
    • C:\go-x86 will contain x86
    • C:\go-x64 will be symbolink link to C:\go

    Hope that helps.

  11. Support Staff 11 Posted by Feodor Fitsner on 27 Feb, 2015 05:17 AM

    Feodor Fitsner's Avatar

    OK, guys, it's been swapped. C:\go contains x64 now.

  12. 12 Posted by rjeczalik on 27 Feb, 2015 09:47 AM

    rjeczalik's Avatar

    Just a heads up. The symlinked `c:\go-x64` does not work.

    go: cannot find GOROOT directory: c:\go-x64
    Command exited with code 2

    https://ci.appveyor.com/project/rjeczalik/notify-246/build/271

  13. Support Staff 13 Posted by Feodor Fitsner on 27 Feb, 2015 02:26 PM

    Feodor Fitsner's Avatar

    Yeah, seems like Go doesn't notice symlinks. Will just remove it next time.

    -Feodor

  14. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:54 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

 

27 Oct, 2025 07:53 PM
27 Oct, 2025 03:46 PM
23 Oct, 2025 07:11 AM
16 Oct, 2025 07:14 PM
16 Oct, 2025 04:37 PM
16 Oct, 2025 04:34 PM