Skip to content

Commit

Permalink
nit: ensure build works when GOPATH is not set (#1647)
Browse files Browse the repository at this point in the history
Signed-off-by: Philip Panyukov <[email protected]>
Signed-off-by: Giedrius Statkevičius <[email protected]>
  • Loading branch information
ppanyukov authored and GiedriusS committed Oct 28, 2019
1 parent c4c4633 commit 454537e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ DOCKER_IMAGE_REPO ?= quay.io/thanos/thanos
DOCKER_IMAGE_TAG ?= $(subst /,-,$(shell git rev-parse --abbrev-ref HEAD))-$(shell date +%Y-%m-%d)-$(shell git rev-parse --short HEAD)
DOCKER_CI_TAG ?= test

# Ensure everything works even if GOPATH is not set, which is often the case.
# The `go env GOPATH` will work for all cases for Go 1.8+.
GOPATH ?= $(shell go env GOPATH)

TMP_GOPATH ?= /tmp/thanos-go
GOBIN ?= $(firstword $(subst :, ,${GOPATH}))/bin
GO111MODULE ?= on
Expand Down

0 comments on commit 454537e

Please sign in to comment.