From 3f2909aa0d95acc5b00642d082013afd40108a30 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sat, 11 Jan 2025 01:30:08 -0600 Subject: trying to get Mutex back to a working state --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 23d7038..068d8a1 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,6 @@ VERSION = $(shell git describe --tags) BUILDTIME = $(shell date +%Y.%m.%d_%H%M) -hmm: test - simple: build # make -C example clean simpleMutexGlobal goimports vet make -C example clean simpleMutexProtoc goimports vet @@ -42,8 +40,10 @@ auto: # rm -f auto.sort.pb.go auto.newsort.pb.go # auto.marshal.pb.go test: - make -C example modproto make -C example rawproto + # The Go Protocol Buffers library embeds a sync.Mutex within the MessageState struct to prevent unintended shallow copies of message structs + # It only fails in Marshal() functions though. That is dumb. + make -C example modproto # THIS DOES NOT WORK. It could work however. This autogenerated code could be used to debug it. junk: cd example; rm -f go.* *.pb.go -- cgit v1.2.3