Closed NOMORECOFFEE closed 5 years ago
doesn't work to internal/pkg/app/app.go
package app
import (
desc "<github path to>/internal/pkg/protobuf"
)
type Args desc.Args
type App interface {
Run(*Args) error
}
missing import is "<github path to>/internal/pkg/app"
Hi, @NOMORECOFFEE !
Thanks for raising the issue. Minimock uses goimports package to fix the imports. I checked that goimports doesn't work either. I tried to use goimports program against the generated file and no imports were inserted by goimports.
However, there's a way to fix it, stay tuned!
internal/pkg/app/app.go
/internal/pkg/protobuf
internal/app/mock/doc.go
Run minimock version
2.1.0
minimock -i "./internal/pkg/app.*" -o "./internal/app/mock/" -s "_mock.go"
and gotmissing import is
desc "<github path to>/internal/pkg/protobuf"