GOPATH entry is relative; must be absolute path

I just installed Go for the first time:
go version go1.14.4 windows/amd64

But when I’m trying to initialize a module I’ve got this error:

Error: failed to init modules: go command failed: go: GOPATH entry is relative; must be absolute path: “_gen\modules”.

But my GOPATH is absolute:

go env GOPATH
C:\Users\arkay\go

Any idea?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.