Install latest patch versions of Golang for Windows (#502)

* add golang for windows

* minor changes

* fix comments

* resolve comments

* add 1.14 version

* add debug lines

* fix arrays

* better way to remove ecmpty strings

* add path

* minor fix

Co-authored-by: Dmitry Shibanov <v-dmshib@microsoft.com>
This commit is contained in:
Dmitry Shibanov
2020-03-12 11:14:08 +03:00
committed by GitHub
parent 02204718b4
commit a3ecb363d7
4 changed files with 53 additions and 32 deletions

View File

@@ -28,7 +28,9 @@
"capture_name_prefix": "packer",
"image_version": "dev",
"image_os": "win19",
"github_feed_token": "{{env `GITHUB_FEED_TOKEN`}}"
"github_feed_token": "{{env `GITHUB_FEED_TOKEN`}}",
"go_versions": "1.9, 1.10, 1.11, 1.12, 1.13, 1.14",
"go_default": "1.14"
},
"sensitive-variables": ["install_password", "ssh_password", "client_secret", "github_feed_token"],
"builders": [
@@ -317,8 +319,8 @@
{
"type": "powershell",
"environment_vars": [
"GO_VERSIONS=1.10.8,1.11.12,1.12.7,1.13",
"GO_DEFAULT=1.12.7"
"GO_VERSIONS={{user `go_versions`}}",
"GO_DEFAULT={{user `go_default`}}"
],
"scripts":[
"{{ template_dir }}/scripts/Installers/Install-Go.ps1"
@@ -638,8 +640,8 @@
{
"type": "powershell",
"environment_vars": [
"GO_VERSIONS=1.10.8,1.11.12,1.12.7,1.13",
"GO_DEFAULT=1.12.7"
"GO_VERSIONS={{user `go_versions`}}",
"GO_DEFAULT={{user `go_default`}}"
],
"scripts":[
"{{ template_dir }}/scripts/Installers/Validate-Go.ps1"