I need help.... late 2week i use prisma v1.25 with...
# orm-help
t
I need help.... late 2week i use prisma v1.25 with a project and it works find then yesterday i updated to v1.26 due to constant change of
var DefaultEndpoint = ""<http://localhost:4466>""
to
var DefaultEndpoint = "<http://localhost:4466>"
in v1.25.. Right now am facing a huge error that i don't know how to solve each time i run
go run script/gqlgen.go
. The funny thing is this code runs fine until the upgrade this is the error:
Copy code
/home/tonymj/gocode/pkg/mod/github.com/prisma/prisma-client-lib-go@v0.0.0-20181017161110-68a1f9908416/exec.go:7:2: could not import <http://github.com/mitchellh/mapstructure|github.com/mitchellh/mapstructure> (cannot find package "<http://github.com/mitchellh/mapstructure|github.com/mitchellh/mapstructure>" in any of:
        /snap/go/3129/src/github.com/mitchellh/mapstructure (from $GOROOT)
        /home/tonymj/gocode/src/github.com/mitchellh/mapstructure (from $GOPATH))
/home/tonymj/gocode/pkg/mod/github.com/prisma/prisma-client-lib-go@v0.0.0-20181017161110-68a1f9908416/lib.go:8:6: could not import <http://github.com/dgrijalva/jwt-go|github.com/dgrijalva/jwt-go> (cannot find package "<http://github.com/dgrijalva/jwt-go|github.com/dgrijalva/jwt-go>" in any of:
        /snap/go/3129/src/github.com/dgrijalva/jwt-go (from $GOROOT)
        /home/tonymj/gocode/src/github.com/dgrijalva/jwt-go (from $GOPATH))
/home/tonymj/gocode/pkg/mod/github.com/prisma/prisma-client-lib-go@v0.0.0-20181017161110-68a1f9908416/lib.go:9:2: could not import <http://github.com/machinebox/graphql|github.com/machinebox/graphql> (cannot find package "<http://github.com/machinebox/graphql|github.com/machinebox/graphql>" in any of:
        /snap/go/3129/src/github.com/machinebox/graphql (from $GOROOT)
        /home/tonymj/gocode/src/github.com/machinebox/graphql (from $GOPATH))
/home/tonymj/gocode/src/github.com/tonymj76/Job/generated/prisma-client/prisma.go:54:40: cannot use opts (variable of type []<http://github.com/machinebox/graphql.ClientOption)|github.com/machinebox/graphql.ClientOption)> as []invalid type value in argument to prisma.New
validation failed: couldn't load packages due to errors: <http://github.com/tonymj76/Job/generated/prisma-client|github.com/tonymj76/Job/generated/prisma-client>, <http://github.com/prisma/prisma-client-lib-go|github.com/prisma/prisma-client-lib-go>
exit status 2
d
Did you install go deps using
dep ensure
or
go get ./...
or something
t
i use
dep ensure
when is not working i also did
go get each package
h
@divyendu resolved in DM 🙂
d
Nice, what was the issue? Anything that needs documentation?
h
It was specific to the machine that go get and dep was not fetching dependencies. I manually cloned stuff in go path to get it working
👍 1