Use go1.5.1

This commit is contained in:
Fabian Reinartz 2015-09-10 12:10:12 +02:00
parent 9a70ee752e
commit 8456b7e12f
2 changed files with 2 additions and 8 deletions

View File

@ -30,15 +30,9 @@ MAKEFILE_DIR ?= $(realpath $(dir $(lastword $(MAKEFILE_LIST))))
BUILD_PATH = $(MAKEFILE_DIR)/.build
GO_VERSION := 1.4.2
GO_VERSION := 1.5.1
GOOS ?= $(subst Darwin,darwin,$(subst Linux,linux,$(subst FreeBSD,freebsd,$(OS))))
ifeq ($(GOOS),darwin)
RELEASE_SUFFIX ?= -osx$(MAC_OS_X_VERSION)
else
RELEASE_SUFFIX ?=
endif
# Never honor GOBIN, should it be set at all.
unexport GOBIN

View File

@ -429,7 +429,7 @@ func (t *Target) scrape(appender storage.SampleAppender) (err error) {
req, err := http.NewRequest("GET", t.URL().String(), nil)
if err != nil {
panic(err)
return err
}
req.Header.Add("Accept", acceptHeader)