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.
This commit is contained in:
Olaoluwa Osuntokun 2019-09-03 19:06:00 -07:00
parent 2dd23819bb
commit a4e2bb47d2
3 changed files with 5 additions and 3 deletions

View File

@ -9,7 +9,7 @@ cache:
- $GOPATH/src/gopkg.in/alecthomas
go:
- "1.12.x"
- "1.13.x"
env:
global:

View File

@ -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/*")

2
go.mod
View File

@ -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