strange, still the same

$ go get -x -u golang.org/x/tools/cmd/goimports 
go: cannot find main module; see 'go help modules'

I am using 

$ go version
go version go1.11 linux/amd64

with

export GO111MODULE=on



четверг, 30 августа 2018 г., 18:21:45 UTC+3 пользователь Ian Davis написал:
>
>
> On Thu, 30 Aug 2018, at 3:37 PM, Denis Cheremisov wrote:
>
> Hi!
> With Go 1.10 and earlier one can install binaries via regular `go get`, `go 
> get golang.org/x/tools/cmd/goimports` for instance.
> It doesn't work with Go modules enabled:
>
> $ go get golang.org/x/tools/cmd/goimports
> go: cannot find main module; see 'go help modules'
>
> this is an obvious usability downgrade. I wonder if someone knows about 
> some sort of replacement for the functionality?
>
>
> It should still work (and does for me).
>
> Can you try go get -x -u golang.org/x/tools/cmd/goimports and see what 
> the output prints about the problem.
>
>
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to