can't use go:generate. boo. it requires go.mod and go.sum
This commit is contained in:
parent
48b19f1e70
commit
0ea93faef2
4
Makefile
4
Makefile
|
@ -8,8 +8,8 @@
|
||||||
all: forgeConfig.pb.go patchset.pb.go goimports vet
|
all: forgeConfig.pb.go patchset.pb.go goimports vet
|
||||||
|
|
||||||
generate: clean
|
generate: clean
|
||||||
go-mod-clean
|
autogenpb --proto patchset.proto
|
||||||
go generate
|
autogenpb --proto forgeConfig.proto
|
||||||
|
|
||||||
vet:
|
vet:
|
||||||
@GO111MODULE=off go vet
|
@GO111MODULE=off go vet
|
||||||
|
|
5
init.go
5
init.go
|
@ -1,10 +1,5 @@
|
||||||
package forgepb
|
package forgepb
|
||||||
|
|
||||||
// go.wit.com/apps/autogenpb auto generates Sort() and Marshal() for protobuf files
|
|
||||||
//go:generate autogenpb --proto forgeConfig.proto
|
|
||||||
//go:generate autogenpb --proto uuid.proto
|
|
||||||
//go:generate autogenpb --proto patch.proto
|
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"os"
|
"os"
|
||||||
"os/user"
|
"os/user"
|
||||||
|
|
Loading…
Reference in New Issue