When I try to generate a wrapper from an interface in an internal package, gowrap fails.
/path/to/package/internal/generated/prom_test.go:
package generated
//go:generate gowrap gen -g -p . -i TestInterface -t prometheus -o prom.go
type TestInterface interface{
TestMethod()
}
go generate ./...
failed to parse source package: open repo.git/path/to/package/internal/generated: no such file or directory
internal/generated/prom_test.go:3: running "gowrap": exit status 1
Moving the file out of the internal subpackage makes it work.
When I try to generate a wrapper from an interface in an internal package, gowrap fails.
/path/to/package/internal/generated/prom_test.go:Moving the file out of the internal subpackage makes it work.