Can golang build be selectable for multiple version just like how nodejs_version is implemented?

Harshavardhana's Avatar

Harshavardhana

12 Oct, 2015 05:48 PM

Hi AppVeyor,

I wish to use Golang 1.5.1 for testing to default to new functionalities provided by Golang. Is it possible for Appveyor to create a environment where Golang path can be choosen through appveyor.yml .

The current problem i have is downloading Golang binary and installing it through msiexec on every patch. This is consuming lot of time for every build that we do.

Thanks for this infrastructure, it is of immense help to us.

  1. Support Staff 1 Posted by Feodor Fitsner on 12 Oct, 2015 06:37 PM

    Feodor Fitsner's Avatar

    You don't necessary need to install it from MSI. Installing from zip using the following script takes seconds:

    rd C:\Go /s /q
    appveyor DownloadFile https://storage.googleapis.com/golang/go1.5.1.windows-amd64.zip
    7z x go1.5.1.windows-amd64.zip -oC:\ >nul
    C:\go\bin\go version
    
  2. 2 Posted by Fnu Harshavardh... on 12 Oct, 2015 06:49 PM

    Fnu Harshavardhana's Avatar

    The problem with this approach is that one has to manually set the "GOROOT"
    and put "go" into essential the cmd %PATH% variable. ``msisxec`` solution
    is much cleaner.

    I would suggest to have golang_version as an option for appveyor.yml
    configuration. So that installed golang can be selected faster.

  3. 3 Posted by Fnu Harshavardh... on 12 Oct, 2015 06:51 PM

    Fnu Harshavardhana's Avatar

    On Mon, Oct 12, 2015 at 11:48 AM, Fnu Harshavardhana <[email blocked]>
    wrote:

    > The problem with this approach is that one has to manually set the
    > "GOROOT" and put "go" into essential the cmd %PATH% variable. ``msisxec``
    > solution is much cleaner.

    I mis-spoke my mistake. It is still possible to easily do this, will give
    this a try. Thanks.

  4. 4 Posted by Fnu Harshavardh... on 12 Oct, 2015 07:30 PM

    Fnu Harshavardhana's Avatar

    On Mon, Oct 12, 2015 at 11:51 AM, Fnu Harshavardhana <[email blocked]>
    wrote:

    > I mis-spoke my mistake. It is still possible to easily do this, will give
    > this a try. Thanks.
    >

    Perfect this actually works better we reduced the time to 3minutes now.
    Thanks for your help.

    But I would still suggest that Appveyor should provide a way where one
    doesn't have to download Golang for each build.
    Since it seems to be the significant portion of the overall build and
    testing process. Any time reduced here would help us
    100x later in the long run.

    Thanks again.
    --
    Harsha
    Co-Founder - https://minio.io

  5. Support Staff 5 Posted by Feodor Fitsner on 12 Oct, 2015 07:31 PM

    Feodor Fitsner's Avatar

    Sure, I'll schedule the deployment of Go 1.5.1 to build workers: https://github.com/appveyor/ci/issues/456

  6. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:00 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

Recent Discussions

17 Jul, 2019 12:16 AM
17 Jul, 2019 12:15 AM
16 Jul, 2019 10:50 PM
16 Jul, 2019 07:47 PM
16 Jul, 2019 06:34 PM

 

16 Jul, 2019 05:17 PM
16 Jul, 2019 10:17 AM
16 Jul, 2019 07:46 AM
15 Jul, 2019 06:33 PM
15 Jul, 2019 06:09 PM
15 Jul, 2019 05:53 PM