wget and install go1.5.1 on machine

This commit is contained in:
Cameron Sparr 2015-10-06 18:43:40 -06:00
parent 2dd3eee58e
commit 52be516fa3
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,11 @@
machine:
post:
- go version
- go version | grep 1.5.1 || sudo rm -rf /usr/local/go
- wget https://storage.googleapis.com/golang/go1.5.1.linux-amd64.tar.gz
- sudo tar -C /usr/local -xzf go1.5.1.linux-amd64.tar.gz
- go version
dependencies: dependencies:
override: override:
- echo "Dummy override, so no Circle dependencies execute" - echo "Dummy override, so no Circle dependencies execute"

View File

@ -91,7 +91,7 @@ func (o *OpenTSDB) Write(bp client.BatchPoints) error {
} }
_, err := connection.Write([]byte(messageLine)) _, err := connection.Write([]byte(messageLine))
if err != nil { if err != nil {
fmt.Errorf("OpenTSDB: Telnet writing error %s", err.Error()) return fmt.Errorf("OpenTSDB: Telnet writing error %s", err.Error())
} }
} }
defer connection.Close() defer connection.Close()