Skip to content

Commit

Permalink
Lock golang version to 1.x
Browse files Browse the repository at this point in the history
[#156582099](https://www.pivotaltracker.com/story/show/156582099)

Co-authored-by: Danny Berger <[email protected]>
  • Loading branch information
luan and dpb587-pivotal committed May 25, 2018
1 parent 1ae413b commit 0a694e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/install-go.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ trap {
Invoke-WebRequest 'https://github.com/stedolan/jq/releases/download/jq-1.5/jq-win64.exe' -OutFile jq.exe
Invoke-WebRequest 'https://golang.org/dl/?mode=json' -OutFile golang.json

$GO_VERSION = $(./jq.exe -r '.[0].files[] | select(.os == """windows""" and .arch == """amd64""" and .kind == """installer""").version' ./golang.json)
$GO_VERSION = $(./jq.exe -r 'map(select(.stable and (.version | split(""".""")[0] == """go1"""))) | .[0].files[] | select(.os == """windows""" and .arch == """amd64""" and .kind == """installer""").version' ./golang.json)

Write-Host "Checking if Go needs to be installed or updated..."
if ((Get-Command 'go.exe' -ErrorAction SilentlyContinue) -ne $null) {
Expand Down
2 changes: 1 addition & 1 deletion ci/tasks/test-unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ platform: linux
image_resource:
type: docker-image
source:
repository: golang
repository: golang:1

inputs:
- name: gosigar
Expand Down

0 comments on commit 0a694e9

Please sign in to comment.