web-ridge / gqlgen-sqlboiler

This is a plugin for gqlgen to generate converts + filter queries and resolvers for sqlboiler
MIT License
74 stars 13 forks source link

Fix import path on windows, Dir() returns backslashed path, in the fi… #53

Closed orible closed 3 years ago

orible commented 3 years ago

Fix import path on windows:

Dir() returns backslashed path, this filepath is then used as an import path in the resolver.go file.

resolver.go is then passed to the go AST parser, a backslashed import path then fails as it contains an invalid escape sequence.

Compiler then errors with the following error:

contentError: formatting: 38:14: unknown escape sequence, importError: E:/server/resolver.go:38:14: unknown escape sequence exit status 3

RichardLindhout commented 3 years ago

Thanks I'll do another pre-release! <3