You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

36 lines
1.6 KiB

Index: src/github.com/prometheus/prometheus/Makefile
--- src/github.com/prometheus/prometheus/Makefile.orig 2018-03-08 19:25:33.000000000 +0100
+++ src/github.com/prometheus/prometheus/Makefile 2018-03-08 20:16:07.622425000 +0100
@@ -89,18 +89,17 @@
assets:
@echo ">> writing assets"
- @$(GO) get -u github.com/jteeuwen/go-bindata/...
@go-bindata $(bindata_flags) -pkg ui -o web/ui/bindata.go -ignore '(.*\.map|bootstrap\.js|bootstrap-theme\.css|bootstrap\.css)' web/ui/templates/... web/ui/static/...
@$(GO) fmt ./web/ui
promu:
@echo ">> fetching promu"
- @GOOS= GOARCH= $(GO) get -u github.com/prometheus/promu
+ @GOOS= GOARCH= $(GO) build -x -o $(FIRST_GOPATH)/bin/promu github.com/prometheus/promu
$(FIRST_GOPATH)/bin/staticcheck:
- @GOOS= GOARCH= $(GO) get -u honnef.co/go/tools/cmd/staticcheck
+ @GOOS= GOARCH= $(GO) build -x -o $(FIRST_GOPATH)/bin/staticcheck honnef.co/go/tools/cmd/staticcheck
$(FIRST_GOPATH)/bin/govendor:
- @GOOS= GOARCH= $(GO) get -u github.com/kardianos/govendor
+ @GOOS= GOARCH= $(GO) build -x -o $(FIRST_GOPATH)/bin/govendor -u github.com/kardianos/govendor
.PHONY: all style check_license format build test vet assets tarball docker promu staticcheck $(FIRST_GOPATH)/bin/staticcheck govendor $(FIRST_GOPATH)/bin/govendor
Index: src/github.com/prometheus/promu/cmd/build.go
--- src/github.com/prometheus/promu/cmd/build.go.orig 2018-03-08 19:25:39.000000000 +0100
+++ src/github.com/prometheus/promu/cmd/build.go 2018-03-08 19:26:06.946782000 +0100
@@ -86,6 +86,7 @@
flags := viper.GetString("build.flags")
params := []string{"build",
+ "-x",
"-o", path.Join(prefix, binaryName),
"-ldflags", ldflags,
}