I have a files laid out like this (OSX):

~/go/src/github.com/user/fish/api/client/wanda.go

~/go/src/github.com/user/fish/go.mod with first line "module 
github.com/liked/movies/v2"

~/go/src/github.com/user/fish/cmd/demo/main.go that does: import client 
"github.com/liked/movies/v2/api/client"

~/go/src/github.com/user/fish/cmd/demo $ go build  ## with GO111MODULE 
unset, under go1.14.4. Also GOPRIVATE=github.com/user   and GOPATH=$HOME/go
 
go: finding module for package github.com/liked/movies/v2/api/client
main.go:4:2: module github.com/liked/movies/v2@latest found 
(v2.0.0-alpha.1), but does not contain package 
github.com/liked/movies/v2/api/client

So the demo/main.go import of the client package is not resolved. Is it 
possible, in general, to import a package within a module? 

If so, how does one do it?

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/2e46e2fd-c201-4dfb-8df0-53f826ea1931o%40googlegroups.com.

Reply via email to