From a14c24a581f2e8a38a8c37fc2b013962472c36ce Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 7 Oct 2025 18:05:21 -0500 Subject: make generate --- generate.go | 17 +++++++++++++++++ init.go | 11 ----------- 2 files changed, 17 insertions(+), 11 deletions(-) create mode 100644 generate.go diff --git a/generate.go b/generate.go new file mode 100644 index 0000000..6158d14 --- /dev/null +++ b/generate.go @@ -0,0 +1,17 @@ +// 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 +// 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 install -v go.wit.com/apps/autogenpb +//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" diff --git a/init.go b/init.go index 4caad03..5e2cd8e 100644 --- a/init.go +++ b/init.go @@ -1,15 +1,4 @@ // Copyright 2025 WIT.COM Inc Licensed GPL 3.0 -// -// 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 install -v go.wit.com/apps/autogenpb -//go:generate autogenpb --proto forgeConfig.proto -//go:generate autogenpb --proto patch.proto -//go:generate autogenpb --proto set.proto package forgepb -- cgit v1.2.3