On Mon, Feb 1, 2021 at 11:36 PM [email protected] <[email protected]> wrote:
>
> Os: ubuntu 18.04
> Arch: arm64 linux
> go version: go1.15.7
> What did I do:
>  $ go get -u golang.org/x/tools/...
> package mvdan.cc/gofumpt/format: unrecognized import path 
> "mvdan.cc/gofumpt/format": reading https://mvdan.cc/gofumpt/format?go-get=1: 
> 404 Not Found
> But with the tip version of Go, I can download and install x/tools 
> successfully. Am I missing any configurations ?
>

I bet it's due go1.15 module-mode be enabled only if you're inside a
go module, and on 1.16 it has changed to be on regardless. see issue
http://golang.org/issues/40276

Perhaps you can get it working on 1.15 with the following: (I didn't
tested, just shooting)
$ cd $(mktemp -d)
$ go mod init tmp
$ GO111MODULE=on go get golang.org/x/tools/...

The temporary module to download is also required on 1.15, but should
not be on tip, I think the issue for that is http://golang.org/issues/40276


BR.

-w

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAFEfeLwkPJz5HcUU1T5TRvfKpyBcooxsgkwH00naUxBn%2BAcZEg%40mail.gmail.com.

Reply via email to