oops, gave link to a dup, here's a right 
one: https://github.com/golang/go/issues/27380

четверг, 30 августа 2018 г., 22:06:36 UTC+3 пользователь Denis Cheremisov 
написал:
>
> Filled a new issue: https://github.com/golang/go/issues/27381
> Please let me know if a title is too weird, I am about as good with them 
> as with variable names :)
>
> четверг, 30 августа 2018 г., 21:35:21 UTC+3 пользователь Sam Whited 
> написал:
>>
>> FWIW, I have the same issue (I have to unset GO111MODULE before 
>> attempting to fetch a binary or before building Go) and there appear to be 
>> several comments on the closed issue suggesting that this is still a 
>> problem: 
>>
>> https://golang.org/issues/26639 
>>
>> I just tested this on tip (currently devel +360771e422) but haven't dug 
>> in further. 
>>
>> —Sam 
>>
>> On Thu, Aug 30, 2018, at 13:29, Denis Cheremisov wrote: 
>> > 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` 
>> <http://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...@googlegroups.com. 
>> > For more options, visit https://groups.google.com/d/optout. 
>>
>>
>> -- 
>> Sam Whited 
>> s...@samwhited.com 
>>
>

-- 
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