From a4e2bb47d28ddc5d28bfbced054966fd61768fc3 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Tue, 3 Sep 2019 19:06:00 -0700 Subject: [PATCH] build: update travis to build against go 1.13 In this commit, we update Travis to start building against the newly released go 1.13. Additionally, we'll now utilize the new `trimpath` to the `go build` and `go install` commands. This new flag serves to remove all file system paths from the compiled Go executable, which will make our binaries more reproducible. --- .travis.yml | 2 +- Makefile | 4 ++-- go.mod | 2 ++ 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index a26e4458b..b8cce6940 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,7 +9,7 @@ cache: - $GOPATH/src/gopkg.in/alecthomas go: - - "1.12.x" + - "1.13.x" env: global: diff --git a/Makefile b/Makefile index 7703ff422..ab746c3de 100644 --- a/Makefile +++ b/Makefile @@ -32,8 +32,8 @@ BTCD_COMMIT := $(shell cat go.mod | \ GOACC_COMMIT := ddc355013f90fea78d83d3a6c71f1d37ac07ecd5 -GOBUILD := GO111MODULE=on go build -v -GOINSTALL := GO111MODULE=on go install -v +GOBUILD := GO111MODULE=on go build -v -trimpath +GOINSTALL := GO111MODULE=on go install -v -trimpath GOTEST := GO111MODULE=on go test -v GOFILES_NOVENDOR = $(shell find . -type f -name '*.go' -not -path "./vendor/*") diff --git a/go.mod b/go.mod index 2d34d4acf..57545d9c8 100644 --- a/go.mod +++ b/go.mod @@ -50,3 +50,5 @@ replace github.com/lightningnetwork/lnd/ticker => ./ticker replace github.com/lightningnetwork/lnd/queue => ./queue replace git.schwanenlied.me/yawning/bsaes.git => github.com/Yawning/bsaes v0.0.0-20180720073208-c0276d75487e + +go 1.13