From a0cfc1844842f1c41c759f336457dce05a50d8e6 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 7 Oct 2025 18:32:55 -0500 Subject: add "make generate" --- generate.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 generate.go (limited to 'generate.go') diff --git a/generate.go b/generate.go new file mode 100644 index 0000000..0424400 --- /dev/null +++ b/generate.go @@ -0,0 +1,14 @@ +package config + +// NOTE: it would be helpful if go.mod doesn't exist, that go generate +// would automatically run go mod init and go mod tidy +// and allow directives to 'go get go.wit.com/apps/autogenpb' +// then this process could be fully automated +// +//go:generate make go-generate +// # go:generate go get go.wit.com/apps/autogenpb # can't do this here since this repo is a GO "primitive" library (no deps) +// # go:generate go install -v go.wit.com/apps/autogenpb +//go:generate autogenpb --proto config.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