fixup generation for new directory layout
@@ -87,7 +87,7 @@ func (l *LineWriter) Write(line string, args ...interface{}) {
l.buf.WriteByte('\n')
}
-//go:generate sh -c "go run . | gofmt > ../kmsg/messages.go"
+//go:generate sh -c "go run . | gofmt > ../pkg/kmsg/messages.go"
func main() {
f, err := ioutil.ReadFile("DEFINITIONS")
if err != nil {
@@ -97,7 +97,7 @@ func main() {
l := &LineWriter{bytes.NewBuffer(make([]byte, 0, 300<<10))}
l.Write("package kmsg")
- l.Write(`import "github.com/twmb/kgo/kbin"`)
+ l.Write(`import "github.com/twmb/kgo/pkg/kbin"`)
l.Write("// Code generated by kgo/generate. DO NOT EDIT.\n")
l.Write("// MaxKey is the maximum key used for any messages in this package.")
