2024-11-02 23:56:56 -05:00
|
|
|
# You must use the current google protoc-gen-go
|
2024-10-22 23:35:52 -05:00
|
|
|
#
|
|
|
|
# cd ~/go/src/google.golang.org/protobuf/cmd/protoc-gen-go
|
|
|
|
# go install
|
|
|
|
|
2025-02-07 04:41:25 -06:00
|
|
|
all: droplet.pb.go hypervisor.pb.go event.pb.go experiment.pb.go goimports vet
|
2024-10-22 23:35:52 -05:00
|
|
|
|
2024-12-01 18:41:00 -06:00
|
|
|
vet:
|
|
|
|
@GO111MODULE=off go vet
|
|
|
|
@echo this go library package builds okay
|
2024-10-21 17:53:36 -05:00
|
|
|
|
|
|
|
# autofixes your import headers in your golang files
|
|
|
|
goimports:
|
|
|
|
goimports -w *.go
|
2024-10-18 20:58:15 -05:00
|
|
|
|
|
|
|
redomod:
|
|
|
|
rm -f go.*
|
|
|
|
GO111MODULE= go mod init
|
|
|
|
GO111MODULE= go mod tidy
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.pb.go
|
2024-10-21 19:24:16 -05:00
|
|
|
-rm -f go.*
|
2024-10-18 20:58:15 -05:00
|
|
|
|
|
|
|
droplet.pb.go: droplet.proto
|
2024-12-01 22:24:01 -06:00
|
|
|
autogenpb --proto droplet.proto
|
2024-10-21 18:28:59 -05:00
|
|
|
|
2024-10-22 03:26:02 -05:00
|
|
|
hypervisor.pb.go: hypervisor.proto
|
2024-12-01 22:24:01 -06:00
|
|
|
autogenpb --proto hypervisor.proto
|
2024-10-22 03:26:02 -05:00
|
|
|
|
2024-10-26 06:01:19 -05:00
|
|
|
event.pb.go: event.proto
|
2024-12-01 22:24:01 -06:00
|
|
|
autogenpb --proto event.proto
|
2024-10-22 23:35:52 -05:00
|
|
|
|
2025-02-07 04:41:25 -06:00
|
|
|
experiment.pb.go: experiment.proto
|
|
|
|
autogenpb --proto experiment.proto
|
2024-10-24 17:50:50 -05:00
|
|
|
|
2024-10-18 20:58:15 -05:00
|
|
|
deps:
|
|
|
|
apt install golang-goprotobuf-dev
|
|
|
|
apt install protobuf-compiler
|
|
|
|
|
|
|
|
push:
|
|
|
|
git pull
|
|
|
|
git add --all
|
|
|
|
git commit -a -s
|
|
|
|
git push
|