mirror of
https://github.com/weaveworks/scope.git
synced 2026-07-19 13:29:35 +00:00
Turn on GO15VENDOREXPERIMENT in build container; don't go get.
This commit is contained in:
4
Makefile
4
Makefile
@@ -42,7 +42,6 @@ $(APP_EXE): app/*.go render/*.go report/*.go xfer/*.go common/sanitize/*.go
|
||||
$(PROBE_EXE): probe/*.go probe/docker/*.go probe/kubernetes/*.go probe/endpoint/*.go probe/host/*.go probe/process/*.go probe/overlay/*.go report/*.go xfer/*.go common/sanitize/*.go common/exec/*.go
|
||||
|
||||
$(APP_EXE) $(PROBE_EXE):
|
||||
go get -d -tags netgo ./$(@D)
|
||||
go build -ldflags "-extldflags \"-static\" -X main.version $(SCOPE_VERSION)" -tags netgo -o $@ ./$(@D)
|
||||
@strings $@ | grep cgo_stub\\\.go >/dev/null || { \
|
||||
rm $@; \
|
||||
@@ -102,6 +101,3 @@ deps:
|
||||
github.com/mjibson/esc \
|
||||
github.com/kisielk/errcheck \
|
||||
github.com/aktau/github-release
|
||||
|
||||
update:
|
||||
go get -u -f -v -tags netgo ./...
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
FROM golang:1.5.1
|
||||
ENV GO15VENDOREXPERIMENT 1
|
||||
RUN apt-get update && apt-get install -y libpcap-dev
|
||||
COPY build.bash /
|
||||
|
||||
|
||||
Reference in New Issue
Block a user