From 2f715b47d53de14393fdf36bfbc38b9a84137cf8 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sat, 2 Nov 2024 23:56:56 -0500 Subject: [PATCH] attempt at instructions Signed-off-by: Jeff Carr --- Makefile | 16 ++++++++++++++-- work/google.golang.org/protobuf | 1 + 2 files changed, 15 insertions(+), 2 deletions(-) create mode 160000 work/google.golang.org/protobuf diff --git a/Makefile b/Makefile index 3188393..6ae9fca 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,21 @@ -# You must use the current protoc-gen-go +# You must use the current google protoc-gen-go # -# go-clone --go-src google.golang.org/protobuf # cd ~/go/src/google.golang.org/protobuf/cmd/protoc-gen-go # go install +check-for-protoc-gen-go: + @if [ -f "/usr/bin/bin/protoc-gen-go" ]; then \ + echo "the protoc-gen-go package is old in debian sid right now"; \ + echo "for now, remove it"; \ + apt remote proto-gen-go \ + exit 1; \ + fi + @if [ ! -f "$(HOME)/go/bin/protoc-gen-go" ]; then \ + echo "you must build protoc-gen-go from google"; \ + echo go-clone google.golang.org/protobuf; \ + cd ~/go/src/google.golang.org/protobuf/cmd/protoc-gen-go/ && go install; \ + fi + make all all: droplet.pb.go hypervisor.pb.go event.pb.go experiments.pb.go make -C example diff --git a/work/google.golang.org/protobuf b/work/google.golang.org/protobuf new file mode 160000 index 0000000..29947bb --- /dev/null +++ b/work/google.golang.org/protobuf @@ -0,0 +1 @@ +Subproject commit 29947bbd165cd2034df6d15ae06feb83af40c572