Encountered `import cycle not allowed` when running sample
tedyu opened this issue · comments
I am using
go version go1.16.13 linux/amd64
When running https://github.com/pganalyze/pg_query_go/#parsing-a-query-into-go-structs , I got the following error:
package command-line-arguments
imports github.com/pganalyze/pg_query_go/v2
imports github.com/pganalyze/pg_query_go/v2: import cycle not allowed
Its not clear why this would occur - could it be that you were using an outdated version? (per #57)