From 346956ca4bae0792c03c35b54b75bdea5350814c Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 9 Oct 2025 01:04:24 -0500 Subject: common protobuf makefile --- generate.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 generate.go (limited to 'generate.go') diff --git a/generate.go b/generate.go new file mode 100644 index 0000000..936e322 --- /dev/null +++ b/generate.go @@ -0,0 +1,16 @@ +// Copyright 2025 WIT.COM Inc Licensed GPL 3.0 + +package forgepb + +// NOTE: it would be helpful if go.mod doesn't exist, that go generate +// would automatically run go mod init and go mod tidy +// This would allow directives like 'go install go.wit.com/apps/autogenpb' +// Then this process could be fully automated +// +//go:generate make go-generate +//go:generate autogenpb --proto forgeConfig.proto +//go:generate autogenpb --proto patch.proto +//go:generate autogenpb --proto set.proto +// # go:generate go get golang.org/x/tools # repo seems broken at this time (?) +// # go:generate go install -v golang.org/x/tools/cmd/goimports +//go:generate bash -c "goimports -w *.go" -- cgit v1.2.3