diff --git a/Makefile b/Makefile index 48340f5..f867ef2 100644 --- a/Makefile +++ b/Makefile @@ -10,7 +10,6 @@ all: package.pb.go machine.pb.go vet vet: @GO111MODULE=off go vet @echo this go library package builds okay - GO111MODULE=off go vet # autofixes your import headers in your golang files goimports: @@ -26,7 +25,7 @@ clean: -rm -f go.* package.pb.go: package.proto - autogenpb --proto package.proto --mutex + autogenpb --proto package.proto machine.pb.go: machine.proto - autogenpb --proto machine.proto --mutex + autogenpb --proto machine.proto diff --git a/machine.proto b/machine.proto index 67bc697..b0bf5aa 100644 --- a/machine.proto +++ b/machine.proto @@ -5,6 +5,8 @@ package gitpb; import "package.proto"; import "google/protobuf/timestamp.proto"; // Import the well-known type for Timestamp +// global settings for autogenpb `autogenpb:mutex` + message Machine { // `autogenpb:marshal` string hostname = 1; // `autogenpb:unique` int64 memory = 2; diff --git a/package.proto b/package.proto index d56a957..9dc301b 100644 --- a/package.proto +++ b/package.proto @@ -5,6 +5,8 @@ package gitpb; // import "google/protobuf/duration.proto"; // Import the well-known type for Timestamp import "google/protobuf/timestamp.proto"; // Import the well-known type for Timestamp +// global settings for autogenpb `autogenpb:mutex` + message Package { string name = 1; // `autogenpb:unique` // name: zookeeper-go string version = 2; // version: 0.0.3