goas icon indicating copy to clipboard operation
goas copied to clipboard

Error: parseImportStatements

Open joseboretto-meli opened this issue 4 years ago • 2 comments

Hello, I am generating the documentation for one of my projects, but I have this error

2020/08/20 10:48:18 gopkg.in/yaml.v2 -> /Users/joborettoble/go/pkg/mod/gopkg.in/[email protected]
2020/08/20 10:48:19 Error: parseImportStatements: parse of /Users/joborettoble/go/pkg/mod/golang.org/x/[email protected]/cmd/fiximports/testdata/src/old.com/bad package cause error: /Users/joborettoble/go/pkg/mod/golang.org/x/[email protected]/cmd/fiximports/testdata/src/old.com/bad/bad.go:2:43: expected 'package', found 'EOF'

One of my modules has this dependency https://github.com/golang/tools/blob/master/cmd/fiximports/testdata/src/old.com/bad/bad.go

How can we handle this error?

Thanks!

joseboretto-meli avatar Aug 20 '20 13:08 joseboretto-meli

Hello,

I’m upvoting this. I have several breaking dependencies, such as the github.com/golang/tools one, or this one: https://github.com/google/wire/blob/main/internal/wire/testdata/NoopBuild/want/wire_gen.go

Is it possible to use this goas with such dependencies?

bLuka avatar May 17 '21 15:05 bLuka

Hey, I was able to fix the issue and have it forked here.

nikumar1206 avatar Oct 09 '23 20:10 nikumar1206