reg: improting from /usr/share/gocode/src in vendor mode

65 views
Skip to first unread message

RAJESH DASARI

unread,
Apr 3, 2023, 8:17:04 AM4/3/23
to golang-nuts
Hi ,

We are vendoring the depenedencies and building our module with go build -mod=vendor . We have one module under /usr/share/gocode/src path , could you please suggest how we can import from this path in vendor mode.
I tried exporting GOPATH to /usr/share/gocode/src  , it didnot work. I tried copying the /usr/share/gocode/src to /usr/lib/golang/src/ path , it worked for us but not sure whether it is the correction solution, please suggest how i can import from /usr/share/gocode/src.

Regards,
Rajesh.
Reply all
Reply to author
Forward
0 new messages