-
-
Notifications
You must be signed in to change notification settings - Fork 405
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
go: gimme to installs go v1.12.x #1966
Closed
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,7 +34,8 @@ endef | |
|
||
VERSION?=$(shell $(VERSION_CMD)) | ||
GO_GET:=CC= GOARCH= go get | ||
GOVENDOR:=${GOPATH}/bin/govendor | ||
GOFMT:=gofmt -s -w | ||
GOVENDOR:=GOFLAGS= ${GOPATH}/bin/govendor | ||
BUILD_CMD?=${GOVENDOR} | ||
BUILD_ID:=$(shell echo 0x$$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \n')) | ||
SKYDIVE_GITHUB:=github.com/skydive-project/skydive | ||
|
@@ -281,13 +282,13 @@ flow/flow.pb.go: flow/flow.proto filters/filters.proto | |
sed -e 's/type ICMPLayer struct {/\/\/ gendecoder\ntype ICMPLayer struct {/' -i $@ | ||
sed -e 's/type IPMetric struct {/\/\/ gendecoder\ntype IPMetric struct {/' -i $@ | ||
sed -e 's/type TCPMetric struct {/\/\/ gendecoder\ntype TCPMetric struct {/' -i $@ | ||
gofmt -s -w $@ | ||
$(GOFMT) $@ | ||
|
||
websocket/structmessage.pb.go: websocket/structmessage.proto | ||
$(call PROTOC_GEN,$<) | ||
|
||
sed -e 's/type StructMessage struct {/type StructMessage struct { XXX_state structMessageState `json:"-"`/' -i websocket/structmessage.pb.go | ||
gofmt -s -w $@ | ||
$(GOFMT) $@ | ||
|
||
.proto: govendor flow/layers/dns.pb.go flow/layers/vrrpv2.pb.go flow/layers/dhcpv4.pb.go flow/flow.pb.go filters/filters.pb.go websocket/structmessage.pb.go | ||
|
||
|
@@ -354,7 +355,7 @@ npm.install: | |
|
||
statics/bindata.go: .typescript ebpf.build $(shell find statics -type f \( ! -iname "bindata.go" \)) | ||
$(call VENDOR_RUN,${GO_BINDATA_GITHUB}) go-bindata ${GO_BINDATA_FLAGS} -nometadata -o statics/bindata.go -pkg=statics -ignore=bindata.go $(BINDATA_DIRS) | ||
gofmt -w -s statics/bindata.go | ||
$(GOFMT) statics/bindata.go | ||
|
||
.PHONY: .vppbinapi | ||
.vppbinapi: binapigenerator | ||
|
@@ -558,18 +559,18 @@ govendor: | |
.PHONY: fmt | ||
fmt: govendor genlocalfiles | ||
@echo "+ $@" | ||
@test -z "$$($(GOVENDOR) fmt +local)" || \ | ||
(echo "+ please format Go code with 'gofmt -s'" && /bin/false) | ||
$(GOVENDOR) fmt +local || \ | ||
(echo "+ please format Go code with '$(GOFMT)'" && /bin/false) | ||
|
||
.PHONY: vet | ||
vet: govendor | ||
@echo "+ $@" | ||
test -z "$$($(GOVENDOR) tool vet $$( \ | ||
test -z "$$($(GOVENDOR) vet $$( \ | ||
$(GOVENDOR) list -no-status +local \ | ||
| perl -pe 's|$(SKYDIVE_GITHUB)/?||g' \ | ||
| grep -v '^tests') 2>&1 \ | ||
| grep -v '^$(SKYDIVE_GITHUB)/tests' \ | ||
| grep -v '^$(SKYDIVE_GITHUB)/contrib/collectd' \ | ||
) 2>&1 \ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. what about '^tests' ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. '^$(SKYDIVE_GITHUB)/tests' as I don't remove the prefix anymore |
||
| tee /dev/stderr \ | ||
| grep -v '^flow/probes/afpacket/' \ | ||
| grep -v 'exit status 1' \ | ||
)" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gofmt -s only we would like the output
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is just the message to the user; and user should overwrite source (rather than output to stdout):