Re: [go-nuts] x/tools error while trying to install

2021-05-07 Thread 'wagner riffel' via golang-nuts
On Fri May 7, 2021 at 11:10 AM -03, Eric Garcia wrote:
> Was trying to install all the tools, and hit the following errors.
>
> go version 1.16.3
>
> ```
> go get -u golang.org/x/tools/...
>

I think with go1.16 and later the correct way of installing programs
is with go install, it builds clean for me.
$ go install golang.org/x/tools/cmd/...@latest

-wagner

-- 
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/CB79QAS9VCSF.3L7J5LRYUD4R8%40pampas.


[go-nuts] x/tools error while trying to install

2021-05-07 Thread Eric Garcia
Was trying to install all the tools, and hit the following errors.

go version 1.16.3

```
go get -u golang.org/x/tools/...
# golang.org/x/tools/gopls/internal/hooks
../../golang.org/x/tools/gopls/internal/hooks/analysis.go:31:5: cannot use 
simple.Analyzers (type map[string]*lint.Analyzer) as type 
map[string]*analysis.Analyzer in argument to add
../../golang.org/x/tools/gopls/internal/hooks/analysis.go:32:5: cannot use 
staticcheck.Analyzers (type map[string]*lint.Analyzer) as type 
map[string]*analysis.Analyzer in argument to add
../../golang.org/x/tools/gopls/internal/hooks/analysis.go:39:5: cannot use 
stylecheck.Analyzers (type map[string]*lint.Analyzer) as type 
map[string]*analysis.Analyzer in argument to add
```

Has anyone else hit this, or found a way around it. It seems to have been 
introduced with this 
commit: 
https://github.com/golang/tools/commit/799b6824f9e71770e719f77130115e8490b6427e 


-- 
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/b0578eda-029e-47d5-a385-fdbbd13c8906n%40googlegroups.com.