On Friday, July 24, 2020 at 1:08:06 PM UTC-4, Tong Sun wrote:
>
> Hi, 
>
> How to get around the following, go module @latest found but does not 
> contain package? 
>
> $ cd /tmp/015-file
>
> $ GO111MODULE=on
>
> $ go mod init github.com/mkideal/cli/015-file
> go: creating new go.mod: module github.com/mkideal/cli/015-file
>
> $ cat go.mod module github.com/mkideal/cli/015-file
>
> go 1.14
>
> $ go build
> go: finding module for package github.com/mkideal/cli
> go: finding module for package github.com/mkideal/cli/ext
> main.go:6:2: module github.com/mkideal/cli@latest found (v0.2.2), but does 
> not contain package github.com/mkideal/cli
> main.go:7:2: module github.com/mkideal/cli@latest found (v0.2.2), but does 
> not contain package github.com/mkideal/cli/ext
>
> $ go get -v github.com/mkideal/cli
> go: github.com/mkideal/cli upgrade => v0.2.2
>
> $ go get -v ./...
> go: finding module for package github.com/mkideal/cli
> go: finding module for package github.com/mkideal/cli/ext
> go: finding module for package github.com/mkideal/cli
> go: finding module for package github.com/mkideal/cli/ext
> main.go:6:2: module github.com/mkideal/cli@latest found (v0.2.2), but does 
> not contain package github.com/mkideal/cli
> main.go:7:2: module github.com/mkideal/cli@latest found (v0.2.2), but does 
> not contain package github.com/mkideal/cli/ext
>
> $ go version
> go version go1.14.1 linux/amd64
>
>
> This is under Ubuntu 20.04.
>


Thanks for the reply Brian.

The /tmp/015-file is prepared from 
https://github.com/mkideal/cli/blob/master/_examples/015-file 

-- 
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/d05742dd-395a-46e6-a248-d80a07839c6co%40googlegroups.com.

Reply via email to