Skip to content

Commit 3154aa8

Browse files
authored
Merge pull request kubernetes-retired#38 from mukhoakash/update-latest-kep
Update the code with latest KEP
2 parents 50e1430 + 620b96b commit 3154aa8

File tree

8 files changed

+850
-696
lines changed

8 files changed

+850
-696
lines changed

Makefile

+7-5
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export GOPATH
2121

2222
# Only set PROTOC_VER if it has an empty value.
2323
ifeq (,$(strip $(PROTOC_VER)))
24-
PROTOC_VER := 3.9.1
24+
PROTOC_VER := 3.14.0
2525
endif
2626

2727
PROTOC_OS := $(shell uname -s)
@@ -36,14 +36,16 @@ endif
3636

3737
PROTOC := ./protoc
3838
PROTOC_ZIP := protoc-$(PROTOC_VER)-$(PROTOC_OS)-$(PROTOC_ARCH).zip
39-
PROTOC_URL := https://github.com/google/protobuf/releases/download/v$(PROTOC_VER)/$(PROTOC_ZIP)
39+
PROTOC_URL := https://github.com/protocolbuffers/protobuf/releases/download/v$(PROTOC_VER)/$(PROTOC_ZIP)
4040
PROTOC_TMP_DIR := .protoc
4141
PROTOC_TMP_BIN := $(PROTOC_TMP_DIR)/bin/protoc
42+
PROTOC_TMP_INC := $(PROTOC_TMP_DIR)/include
4243

4344
$(PROTOC):
4445
-mkdir -p "$(PROTOC_TMP_DIR)" && \
4546
curl -L $(PROTOC_URL) -o "$(PROTOC_TMP_DIR)/$(PROTOC_ZIP)" && \
46-
unzip "$(PROTOC_TMP_DIR)/$(PROTOC_ZIP)" -d "$(PROTOC_TMP_DIR)" && \
47+
unzip -o "$(PROTOC_TMP_DIR)/$(PROTOC_ZIP)" -d "$(PROTOC_TMP_DIR)" && \
48+
unzip -o "$(PROTOC_TMP_DIR)/$(PROTOC_ZIP)" -d "$(PROTOC_TMP_INC)/*" && \
4749
chmod 0755 "$(PROTOC_TMP_BIN)" && \
4850
cp -f "$(PROTOC_TMP_BIN)" "$@"
4951
stat "$@" > /dev/null 2>&1
@@ -77,7 +79,7 @@ $(PROTOC_GEN_GO):
7779
# for protoc-gen-go
7880
PROTOC_GEN_GO_JSON_PKG := github.com/mitchellh/protoc-gen-go-json
7981
PROTOC_GEN_GO_JSON := protoc-gen-go-json
80-
$(PROTOC_GEN_GO_JSON): PROTOC_GEN_GO_JSON_VERSION := v1.0.0
82+
$(PROTOC_GEN_GO_JSON): PROTOC_GEN_GO_JSON_VERSION := v1.1.0
8183
$(PROTOC_GEN_GO_JSON):
8284
mkdir -p $(dir $(GOPATH)/src/$(PROTOC_GEN_GO_JSON_PKG))
8385
test -d $(GOPATH)/src/$(PROTOC_GEN_GO_JSON_PKG)/.git || git clone https://$(PROTOC_GEN_GO_JSON_PKG) $(GOPATH)/src/$(PROTOC_GEN_GO_JSON_PKG)
@@ -170,7 +172,7 @@ $(COSI_GO_TMP): GO_OUT := plugins=grpc
170172
$(COSI_GO_TMP): GO_OUT := $(GO_OUT),Mgoogle/protobuf/descriptor.proto=github.com/golang/protobuf/protoc-gen-go/descriptor
171173
$(COSI_GO_TMP): GO_OUT := $(GO_OUT),Mgoogle/protobuf/wrappers.proto=$(PTYPES_PKG)/wrappers
172174
$(COSI_GO_TMP): GO_OUT := $(GO_OUT):"$(HERE)/$(COSI_BUILD)"
173-
$(COSI_GO_TMP): GO_JSON_OUT := emit_defaults
175+
$(COSI_GO_TMP): GO_JSON_OUT := emit_defaults=true
174176
$(COSI_GO_TMP): GO_JSON_OUT := $(GO_JSON_OUT):"$(HERE)/$(COSI_BUILD)"
175177
$(COSI_GO_TMP): GO_FAKE_OUT := emit_defaults
176178
$(COSI_GO_TMP): GO_FAKE_OUT := $(GO_FAKE_OUT),packagePath=sigs.k8s.io/container-object-storage-interface-spec

0 commit comments

Comments
 (0)