`go list` prints out non-existing Target

54 Views Asked by At

As per golint's README.md:

To find out where golint was installed you can run `go list -f {{.Target}} golang.org/x/lint/golint`.

When I run the command I get:

/Users/Marko/go/bin/golint

But there is no such file:

ls -alF /Users/Marko/go/bin/
total 6432
drwxr-xr-x  3 Marko  staff       96 Nov 29 12:32 ./
drwxr-xr-x  4 Marko  staff      128 Nov 29 12:05 ../
-rwxr-xr-x  1 Marko  staff  3289296 Nov 29 12:32 hello*

How can I find out where is golint?

1

There are 1 best solutions below

0
On

You need to install it first. Run go get -u golang.org/x/lint/golint. I'm not sure why does go list still list it as a Target, even if it is not installed.