mirror of
https://github.com/prometheus/node_exporter.git
synced 2024-11-27 02:53:02 +01:00
Use go env to fetch GOPATH to support Go 1.8
Go 1.8 do not require env GOPATH to be set and make will fail if it isn't set.
This commit is contained in:
parent
6580c95305
commit
2c3a652f58
2
Makefile
2
Makefile
@ -12,7 +12,7 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
GO ?= GO15VENDOREXPERIMENT=1 go
|
GO ?= GO15VENDOREXPERIMENT=1 go
|
||||||
GOPATH := $(firstword $(subst :, ,$(GOPATH)))
|
GOPATH := $(firstword $(subst :, ,$(shell $(GO) env GOPATH)))
|
||||||
|
|
||||||
PROMU ?= $(GOPATH)/bin/promu
|
PROMU ?= $(GOPATH)/bin/promu
|
||||||
STATICCHECK ?= $(GOPATH)/bin/staticcheck
|
STATICCHECK ?= $(GOPATH)/bin/staticcheck
|
||||||
|
Loading…
Reference in New Issue
Block a user