You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Schema and models are not used, just gqlgen.go script as in instructions
versions
gqlgen version = 0.9.1
go version = go1.12.4 windows/amd64
GOPATH = C:\Users\Username\Develop\go
Actually, the problem is in ImportPathForDir function in internal/code/imports.go path.
There is an infinite loop at 64 line: firstly it checks for the go.mod file, then it tries to find absolute package path and just doing comparison to "/".
I have not tried it in Unix-like systems, but in Windows 10 with dep (and without go mod) installation the loop will never stop because after several cycles variable modDir is became equal to "C:\".
Reference to the problem:
What happened?
go run scripts/gqlgen.go init
lasts forever
What did you expect?
Behavior as described here: https://gqlgen.com/getting-started-dep/
Minimal graphql.schema and models to reproduce
Schema and models are not used, just gqlgen.go script as in instructions
versions
gqlgen version = 0.9.1
go version = go1.12.4 windows/amd64
GOPATH = C:\Users\Username\Develop\go
Actually, the problem is in ImportPathForDir function in internal/code/imports.go path.
There is an infinite loop at 64 line: firstly it checks for the go.mod file, then it tries to find absolute package path and just doing comparison to "/".
I have not tried it in Unix-like systems, but in Windows 10 with dep (and without go mod) installation the loop will never stop because after several cycles variable
modDir
is became equal to "C:\".Reference to the problem:
gqlgen/internal/code/imports.go
Line 64 in d2c5bf2
The text was updated successfully, but these errors were encountered: