Browse Source

Use go1.5.1

pull/1068/head
Fabian Reinartz 9 years ago
parent
commit
8456b7e12f
  1. 8
      Makefile.INCLUDE
  2. 2
      retrieval/target.go

8
Makefile.INCLUDE

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

2
retrieval/target.go

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

Loading…
Cancel
Save