Skip to content

Commit

Permalink
Bump golang to 1.13.1
Browse files Browse the repository at this point in the history
[#168958394]

Signed-off-by: Tom Chen <[email protected]>
  • Loading branch information
chentom88 committed Oct 4, 2019
1 parent d2987b9 commit bb3bcb5
Show file tree
Hide file tree
Showing 34 changed files with 53 additions and 62 deletions.
16 changes: 8 additions & 8 deletions config/blobs.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
golang/go1.12.4.linux-amd64.tar.gz:
size: 127928770
object_id: 50282fe8-2e60-41d1-6942-bf04ef9523b4
sha: sha256:d7d1f1f88ddfe55840712dc1747f37a790cbcaa448f6c9cf51bbe10aa65442f5
golang/go1.12.4.windows-amd64.zip:
size: 141292610
object_id: 01bae496-b522-46ea-5cb9-59b23e4537d1
sha: sha256:25b043ebacca2fa2c87bbcd7463be5f34fbd225247c101888f81647fadbdfca0
golang/go1.13.1.linux-amd64.tar.gz:
size: 120040373
object_id: d4557f97-71d6-4305-4372-650ed8f2829f
sha: sha256:94f874037b82ea5353f4061e543681a0e79657f787437974214629af8407d124
golang/go1.13.1.windows-amd64.zip:
size: 133886068
object_id: 9057c20e-bed8-4331-643d-b98daf744ec1
sha: sha256:24cb08d369c1962cccacedc56fd79dc130f623b3b667a316554621ad6ac9b442
3 changes: 1 addition & 2 deletions packages/binding-cache/packaging
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ set -e -x
mkdir -p ${BOSH_INSTALL_TARGET}/src
cp -a . ${BOSH_INSTALL_TARGET}/src

export GOROOT=$(readlink -nf /var/vcap/packages/golang1.12.4)
export GOROOT=$(readlink -nf /var/vcap/packages/golang1.13.1)
export GOPATH=$BOSH_INSTALL_TARGET
export PATH=$GOROOT/bin:$PATH
export HOME=/var/vcap

go build -o ${BOSH_INSTALL_TARGET}/binding-cache code.cloudfoundry.org/loggregator-agent/cmd/syslog-binding-cache

Expand Down
2 changes: 1 addition & 1 deletion packages/binding-cache/spec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: binding-cache

dependencies:
- golang1.12.4
- golang1.13.1

files:
- github.com/klauspost/cpuid/*
Expand Down
4 changes: 2 additions & 2 deletions packages/forwarder-agent-windows/packaging
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ if ((Get-Item $BOSH_INSTALL_TARGET).LinkType -ne "") {
$BOSH_INSTALL_TARGET = (Get-Item $BOSH_INSTALL_TARGET).Target
}

$env:GOROOT="C:\var\vcap\packages\golang1.12.4-windows\go"
$env:GOROOT="C:\var\vcap\packages\golang1.13.1-windows\go"
$env:GOPATH="${BOSH_INSTALL_TARGET}"
$env:PATH="${env:GOROOT}\bin;${env:PATH}"
$env:HOME="C:\var\vcap"

$pkg_name="forwarder-agent"
$pkg_path="code.cloudfoundry.org/loggregator-agent/cmd/forwarder-agent"

Expand Down
2 changes: 1 addition & 1 deletion packages/forwarder-agent-windows/spec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: forwarder-agent-windows
dependencies:
- golang1.12.4-windows
- golang1.13.1-windows
files:
- github.com/klauspost/cpuid/*
- github.com/klauspost/compress/flate/*
Expand Down
3 changes: 1 addition & 2 deletions packages/forwarder-agent/packaging
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ set -e -x
mkdir -p ${BOSH_INSTALL_TARGET}/src
cp -a . ${BOSH_INSTALL_TARGET}/src

export GOROOT=$(readlink -nf /var/vcap/packages/golang1.12.4)
export GOROOT=$(readlink -nf /var/vcap/packages/golang1.13.1)
export GOPATH=$BOSH_INSTALL_TARGET
export PATH=$GOROOT/bin:$PATH
export HOME=/var/vcap

go build -o ${BOSH_INSTALL_TARGET}/forwarder-agent code.cloudfoundry.org/loggregator-agent/cmd/forwarder-agent

Expand Down
2 changes: 1 addition & 1 deletion packages/forwarder-agent/spec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: forwarder-agent

dependencies:
- golang1.12.4
- golang1.13.1

files:
- github.com/klauspost/cpuid/*
Expand Down
8 changes: 0 additions & 8 deletions packages/golang1.12.4-windows/spec

This file was deleted.

4 changes: 0 additions & 4 deletions packages/golang1.12.4/packaging

This file was deleted.

5 changes: 0 additions & 5 deletions packages/golang1.12.4/spec

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
. ./exiter.ps1

$GOLANG_ZIP="golang/go1.12.4.windows-amd64.zip"
$GOLANG_ZIP="golang/go1.13.1.windows-amd64.zip"
try
{
Add-Type -AssemblyName System.IO.Compression.FileSystem
Expand Down
8 changes: 8 additions & 0 deletions packages/golang1.13.1-windows/spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
name: golang1.13.1-windows

dependencies: []

files:
- exiter.ps1
- golang/go1.13.1.windows-amd64.zip
4 changes: 4 additions & 0 deletions packages/golang1.13.1/packaging
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
set -e

tar xzf golang/go1.13.1.linux-amd64.tar.gz
cp -R go/* ${BOSH_INSTALL_TARGET}
5 changes: 5 additions & 0 deletions packages/golang1.13.1/spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
name: golang1.13.1

files:
- golang/go1.13.1.linux-amd64.tar.gz
3 changes: 1 addition & 2 deletions packages/loggregator_agent/packaging
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ set -e -x
mkdir -p ${BOSH_INSTALL_TARGET}/src
cp -a . ${BOSH_INSTALL_TARGET}/src

export GOROOT=$(readlink -nf /var/vcap/packages/golang1.12.4)
export GOROOT=$(readlink -nf /var/vcap/packages/golang1.13.1)
export GOPATH=$BOSH_INSTALL_TARGET
export PATH=$GOROOT/bin:$PATH
export HOME=/var/vcap

go build -o ${BOSH_INSTALL_TARGET}/loggregator-agent code.cloudfoundry.org/loggregator-agent/cmd/agent

Expand Down
2 changes: 1 addition & 1 deletion packages/loggregator_agent/spec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: loggregator_agent
dependencies:
- golang1.12.4
- golang1.13.1
files:
- code.cloudfoundry.org/go-batching/*.go # gosub
- code.cloudfoundry.org/go-diodes/*.go # gosub
Expand Down
2 changes: 1 addition & 1 deletion packages/loggregator_agent_windows/packaging
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ if ((Get-Item $BOSH_INSTALL_TARGET).LinkType -ne "") {
$BOSH_INSTALL_TARGET = (Get-Item $BOSH_INSTALL_TARGET).Target
}

$env:GOROOT="C:\var\vcap\packages\golang1.12.4-windows\go"
$env:GOROOT="C:\var\vcap\packages\golang1.13.1-windows\go"
$env:GOPATH="${BOSH_INSTALL_TARGET}"
$env:PATH="${env:GOROOT}\bin;${env:PATH}"
$env:HOME="C:\var\vcap"
Expand Down
2 changes: 1 addition & 1 deletion packages/loggregator_agent_windows/spec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: loggregator_agent_windows
dependencies:
- golang1.12.4-windows
- golang1.13.1-windows
files:
- exiter.ps1
- code.cloudfoundry.org/go-batching/*.go # gosub
Expand Down
3 changes: 1 addition & 2 deletions packages/metric-scraper/packaging
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ set -e -x
mkdir -p ${BOSH_INSTALL_TARGET}/src
cp -a . ${BOSH_INSTALL_TARGET}/src

export GOROOT=$(readlink -nf /var/vcap/packages/golang1.12.4)
export GOROOT=$(readlink -nf /var/vcap/packages/golang1.13.1)
export GOPATH=$BOSH_INSTALL_TARGET
export PATH=$GOROOT/bin:$PATH
export HOME=/var/vcap

go build -o ${BOSH_INSTALL_TARGET}/metric-scraper code.cloudfoundry.org/loggregator-agent/cmd/metric-scraper

Expand Down
2 changes: 1 addition & 1 deletion packages/metric-scraper/spec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: metric-scraper
dependencies:
- golang1.12.4
- golang1.13.1
files:
- code.cloudfoundry.org/go-diodes/*.go # gosub
- code.cloudfoundry.org/go-envstruct/*.go # gosub
Expand Down
3 changes: 1 addition & 2 deletions packages/prom_scraper/packaging
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ set -e -x
mkdir -p ${BOSH_INSTALL_TARGET}/src
cp -a . ${BOSH_INSTALL_TARGET}/src

export GOROOT=$(readlink -nf /var/vcap/packages/golang1.12.4)
export GOROOT=$(readlink -nf /var/vcap/packages/golang1.13.1)
export GOPATH=$BOSH_INSTALL_TARGET
export PATH=$GOROOT/bin:$PATH
export HOME=/var/vcap

go build -o ${BOSH_INSTALL_TARGET}/prom-scraper code.cloudfoundry.org/loggregator-agent/cmd/prom-scraper

Expand Down
2 changes: 1 addition & 1 deletion packages/prom_scraper/spec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: prom_scraper
dependencies:
- golang1.12.4
- golang1.13.1
files:
- code.cloudfoundry.org/go-diodes/*.go # gosub
- code.cloudfoundry.org/go-envstruct/*.go # gosub
Expand Down
2 changes: 1 addition & 1 deletion packages/prom_scraper_windows/packaging
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ if ((Get-Item $BOSH_INSTALL_TARGET).LinkType -ne "") {
$BOSH_INSTALL_TARGET = (Get-Item $BOSH_INSTALL_TARGET).Target
}

$env:GOROOT="C:\var\vcap\packages\golang1.12.4-windows\go"
$env:GOROOT="C:\var\vcap\packages\golang1.13.1-windows\go"
$env:GOPATH="${BOSH_INSTALL_TARGET}"
$env:PATH="${env:GOROOT}\bin;${env:PATH}"
$env:HOME="C:\var\vcap"
Expand Down
2 changes: 1 addition & 1 deletion packages/prom_scraper_windows/spec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: prom_scraper_windows
dependencies:
- golang1.12.4-windows
- golang1.13.1-windows
files:
- exiter.ps1

Expand Down
2 changes: 1 addition & 1 deletion packages/syslog-agent-windows/packaging
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ if ((Get-Item $BOSH_INSTALL_TARGET).LinkType -ne "") {
$BOSH_INSTALL_TARGET = (Get-Item $BOSH_INSTALL_TARGET).Target
}

$env:GOROOT="C:\var\vcap\packages\golang1.12.4-windows\go"
$env:GOROOT="C:\var\vcap\packages\golang1.13.1-windows\go"
$env:GOPATH="${BOSH_INSTALL_TARGET}"
$env:PATH="${env:GOROOT}\bin;${env:PATH}"
$env:HOME="C:\var\vcap"
Expand Down
2 changes: 1 addition & 1 deletion packages/syslog-agent-windows/spec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: syslog-agent-windows
dependencies:
- golang1.12.4-windows
- golang1.13.1-windows
files:
- exiter.ps1
- github.com/klauspost/cpuid/*
Expand Down
3 changes: 1 addition & 2 deletions packages/syslog-agent/packaging
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ set -e -x
mkdir -p ${BOSH_INSTALL_TARGET}/src
cp -a . ${BOSH_INSTALL_TARGET}/src

export GOROOT=$(readlink -nf /var/vcap/packages/golang1.12.4)
export GOROOT=$(readlink -nf /var/vcap/packages/golang1.13.1)
export GOPATH=$BOSH_INSTALL_TARGET
export PATH=$GOROOT/bin:$PATH
export HOME=/var/vcap

go build -o ${BOSH_INSTALL_TARGET}/syslog-agent code.cloudfoundry.org/loggregator-agent/cmd/syslog-agent

Expand Down
2 changes: 1 addition & 1 deletion packages/syslog-agent/spec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: syslog-agent

dependencies:
- golang1.12.4
- golang1.13.1

files:
- github.com/klauspost/cpuid/*
Expand Down
3 changes: 1 addition & 2 deletions packages/system-metrics-agent-windows/packaging
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@ if ((Get-Item $BOSH_INSTALL_TARGET).LinkType -ne "") {
$BOSH_INSTALL_TARGET = (Get-Item $BOSH_INSTALL_TARGET).Target
}

$env:GOROOT="C:\var\vcap\packages\golang1.12.4-windows\go"
$env:GOROOT="C:\var\vcap\packages\golang1.13.1-windows\go"
$env:GOPATH="${BOSH_INSTALL_TARGET}"
$env:PATH="${env:GOROOT}\bin;${env:PATH}"
$env:HOME="C:\var\vcap"
$pkg_name="system-metrics-agent"
$pkg_path="code.cloudfoundry.org/loggregator-agent/cmd/system-metrics-agent"

Expand Down
2 changes: 1 addition & 1 deletion packages/system-metrics-agent-windows/spec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: system-metrics-agent-windows
dependencies:
- golang1.12.4-windows
- golang1.13.1-windows
files:
- golang.org/x/sys/windows/*
- exiter.ps1
Expand Down
3 changes: 1 addition & 2 deletions packages/system-metrics-agent/packaging
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ set -e -x
mkdir -p ${BOSH_INSTALL_TARGET}/src
cp -a . ${BOSH_INSTALL_TARGET}/src

export GOROOT=$(readlink -nf /var/vcap/packages/golang1.12.4)
export GOROOT=$(readlink -nf /var/vcap/packages/golang1.13.1)
export GOPATH=$BOSH_INSTALL_TARGET
export PATH=$GOROOT/bin:$PATH
export HOME=/var/vcap

go build -o ${BOSH_INSTALL_TARGET}/system-metrics-agent code.cloudfoundry.org/loggregator-agent/cmd/system-metrics-agent

Expand Down
2 changes: 1 addition & 1 deletion packages/system-metrics-agent/spec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: system-metrics-agent

dependencies:
- golang1.12.4
- golang1.13.1

files:
# We need all the files from these directories. Not just Go source files.
Expand Down
3 changes: 1 addition & 2 deletions packages/udp-forwarder/packaging
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ set -e -x
mkdir -p ${BOSH_INSTALL_TARGET}/src
cp -a . ${BOSH_INSTALL_TARGET}/src

export GOROOT=$(readlink -nf /var/vcap/packages/golang1.12.4)
export GOROOT=$(readlink -nf /var/vcap/packages/golang1.13.1)
export GOPATH=$BOSH_INSTALL_TARGET
export PATH=$GOROOT/bin:$PATH
export HOME=/var/vcap

go build -o ${BOSH_INSTALL_TARGET}/udp-forwarder code.cloudfoundry.org/loggregator-agent/cmd/udp-forwarder

Expand Down
2 changes: 1 addition & 1 deletion packages/udp-forwarder/spec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: udp-forwarder

dependencies:
- golang1.12.4
- golang1.13.1

files:
- code.cloudfoundry.org/go-diodes/*.go # gosub
Expand Down

0 comments on commit bb3bcb5

Please sign in to comment.