diff options
| author | Jeff Carr <[email protected]> | 2025-01-11 02:44:21 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-01-11 02:44:21 -0600 |
| commit | 9349ab95fc91f74f2c242a7e3ccc0b630c3d95f3 (patch) | |
| tree | caaf75c3d0da4392a57e0d32b137435160b67d0e /small/Makefile | |
| parent | 3f2909aa0d95acc5b00642d082013afd40108a30 (diff) | |
small app works, example core dumps on Marshal()
Diffstat (limited to 'small/Makefile')
| -rw-r--r-- | small/Makefile | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/small/Makefile b/small/Makefile new file mode 100644 index 0000000..95a9c0c --- /dev/null +++ b/small/Makefile @@ -0,0 +1,49 @@ +VERSION = $(shell git describe --tags) +BUILDTIME = $(shell date +%Y.%m.%d_%H%M) + +all: clean simpleMutexProtoc goimports build + ./small + +modproto: clean withMutex goimports vet build + ./small + +rawproto: clean withoutMutex goimports vet build + ./small + +vet: + @GO111MODULE=off go vet + +build: + GO111MODULE=off go build -v + +simpleMutexProtoc: + ../autogenpb --proto fruit.proto --package main + +# why does this fail to compile? I'm not sure. maybe someone smart can figure it out +# basically, it just trys to return the deleted record but says something +# about the RWmutex lock being copied and GO fails to compile +# I'm don't grok what is going on. This autogenerated code should +# provide as simple as one could hope for automated way to try to debug it though! +simpleMutexProtocWithDeleteCopy: + ../autogenpb --proto fruit.proto --package main --delete + +simpleMutexGlobal: + ../autogenpb --proto fruit.proto --package main --mutex=false + +withMutex: + ../autogenpb --proto fruit.proto --package main + ../autogenpb --proto file.proto --package main + ../autogenpb --proto patchset.proto --package main + +withoutMutex: + ../autogenpb --proto fruit.proto --package main --mutex=false + ../autogenpb --proto file.proto --package main --mutex=false + ../autogenpb --proto patchset.proto --package main --mutex=false + +goimports: + goimports -w *.go + +clean: + -rm -f go.* + -rm -f *.pb.go + -rm -f small basket.pb |
