Skip to content

Commit 4455f1d

Browse files
James DeFelicejdef
authored andcommitted
make: golang/protobuf=v1.2.0; fix download of deps
1 parent e10992f commit 4455f1d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/go/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,14 @@ $(PROTOC):
5858
PROTOC_GEN_GO_PKG := github.com/golang/protobuf/protoc-gen-go
5959
PROTOC_GEN_GO := protoc-gen-go
6060
$(PROTOC_GEN_GO): PROTOBUF_PKG := $(dir $(PROTOC_GEN_GO_PKG))
61-
$(PROTOC_GEN_GO): PROTOBUF_VERSION := v1.1.0
61+
$(PROTOC_GEN_GO): PROTOBUF_VERSION := v1.2.0
6262
$(PROTOC_GEN_GO):
6363
mkdir -p $(dir $(GOPATH)/src/$(PROTOBUF_PKG))
6464
test -d $(GOPATH)/src/$(PROTOBUF_PKG)/.git || git clone https://$(PROTOBUF_PKG) $(GOPATH)/src/$(PROTOBUF_PKG)
6565
(cd $(GOPATH)/src/$(PROTOBUF_PKG) && \
6666
(test "$$(git describe --tags | head -1)" = "$(PROTOBUF_VERSION)" || \
6767
(git fetch && git checkout tags/$(PROTOBUF_VERSION))))
68-
(cd $(GOPATH)/src/$(PROTOBUF_PKG) && go get -v -d ./...) && \
68+
(cd $(GOPATH)/src/$(PROTOBUF_PKG) && go get -v -d $$(go list -f '{{ .ImportPath }}' ./...)) && \
6969
go build -o "$@" $(PROTOC_GEN_GO_PKG)
7070

7171

0 commit comments

Comments
 (0)