Closed mfridman closed 6 months ago
I think some dependency got messed up? It is breaking go vet
in the CI
Error: ../../../go/pkg/mod/github.com/libsql/sqlite-antlr4-parser@v0.0.0-20240323153644-5c63f680a14e/sqliteparserutils/utils.go:57:42: cannot use antlr.NewInterval(currentIntervalStart, previousToken.GetTokenIndex()) (value of type antlr.Interval) as *antlr.Interval value in argument to append
Error: ../../../go/pkg/mod/github.com/libsql/sqlite-antlr4-parser@v0.0.0-20240323153644-5c63f680a14e/sqliteparserutils/utils.go:66:41: cannot use antlr.NewInterval(currentIntervalStart, previousToken.GetTokenIndex()) (value of type antlr.Interval) as *antlr.Interval value in argument to append
Error: ../../../go/pkg/mod/github.com/libsql/sqlite-antlr4-parser@v0.0.0-20240323153644-5c63f680a14e/sqliteparserutils/utils.go:71:57: cannot use stmtInterval (variable of type *antlr.Interval) as antlr.Interval value in argument to tokenStream.GetTextFromInterval
I think this is coming from https://github.com/libsql/sqlite-antlr4-parser directly,
# github.com/libsql/sqlite-antlr4-parser/sqliteparserutils
sqliteparserutils/utils.go:57:42: cannot use antlr.NewInterval(currentIntervalStart, previousToken.GetTokenIndex()) (value of type antlr.Interval) as *antlr.Interval value in argument to append
sqliteparserutils/utils.go:66:41: cannot use antlr.NewInterval(currentIntervalStart, previousToken.GetTokenIndex()) (value of type antlr.Interval) as *antlr.Interval value in argument to append
sqliteparserutils/utils.go:71:57: cannot use stmtInterval (variable of type *antlr.Interval) as antlr.Interval value in argument to tokenStream.GetTextFromInterval
Ah, I see the problem I think this should not be a pointer
EDIT: this should fix it, https://github.com/libsql/sqlite-antlr4-parser/pull/5
@avinassh This should be ready to trigger the CI workflow whenever you get a chance, thank you!
This PR pulls in changes from https://github.com/libsql/sqlite-antlr4-parser/pull/4, which fixes an import issue.
In another project I work on, pulling
github.com/tursodatabase/libsql-client-go
as a dependency causes Go to get tripped up (the underlying issue was fixed in https://github.com/libsql/sqlite-antlr4-parser/pull/4):Ran: