schollz / find3-cli-scanner

The command-line scanner that supports Bluetooth and WiFi
https://www.internalpositioning.com/doc/tracking_your_computer.md
149 stars 55 forks source link

Installation failed "main.go:98:15: too many errors" #37

Closed nakomoto closed 4 years ago

nakomoto commented 4 years ago

go get -u -v github.com/schollz/find3-cli-scanner

github.com/schollz/find3-cli-scanner (download)
github.com/cihub/seelog (download)
github.com/google/gopacket (download)
github.com/montanaflynn/stats (download)
github.com/schollz/find3 (download)
github.com/schollz/gatt (download)
github.com/schollz/wifiscan (download)
github.com/schollz/logger (download)
github.com/urfave/cli (download)
github.com/cpuguy83/go-md2man (download)
github.com/schollz/find3-cli-scanner
# github.com/schollz/find3-cli-scanner
/usr/local/gopath/src/github.com/schollz/find3-cli-scanner/main.go:54:14: cannot use []cli.Author literal (type []cli.Author) as type []*cli.Author in assignment
/usr/local/gopath/src/github.com/schollz/find3-cli-scanner/main.go:61:15: cannot use cli.BoolFlag literal (type cli.BoolFlag) as type cli.Flag in array or slice literal:
    cli.BoolFlag does not implement cli.Flag (Apply method has pointer receiver)
/usr/local/gopath/src/github.com/schollz/find3-cli-scanner/main.go:65:15: cannot use cli.BoolFlag literal (type cli.BoolFlag) as type cli.Flag in array or slice literal:
    cli.BoolFlag does not implement cli.Flag (Apply method has pointer receiver)
/usr/local/gopath/src/github.com/schollz/find3-cli-scanner/main.go:69:17: cannot use cli.StringFlag literal (type cli.StringFlag) as type cli.Flag in array or slice literal:
    cli.StringFlag does not implement cli.Flag (Apply method has pointer receiver)
/usr/local/gopath/src/github.com/schollz/find3-cli-scanner/main.go:74:17: cannot use cli.StringFlag literal (type cli.StringFlag) as type cli.Flag in array or slice literal:
    cli.StringFlag does not implement cli.Flag (Apply method has pointer receiver)
/usr/local/gopath/src/github.com/schollz/find3-cli-scanner/main.go:79:17: cannot use cli.StringFlag literal (type cli.StringFlag) as type cli.Flag in array or slice literal:
    cli.StringFlag does not implement cli.Flag (Apply method has pointer receiver)
/usr/local/gopath/src/github.com/schollz/find3-cli-scanner/main.go:84:17: cannot use cli.StringFlag literal (type cli.StringFlag) as type cli.Flag in array or slice literal:
    cli.StringFlag does not implement cli.Flag (Apply method has pointer receiver)
/usr/local/gopath/src/github.com/schollz/find3-cli-scanner/main.go:89:17: cannot use cli.StringFlag literal (type cli.StringFlag) as type cli.Flag in array or slice literal:
    cli.StringFlag does not implement cli.Flag (Apply method has pointer receiver)
/usr/local/gopath/src/github.com/schollz/find3-cli-scanner/main.go:94:15: cannot use cli.BoolFlag literal (type cli.BoolFlag) as type cli.Flag in array or slice literal:
    cli.BoolFlag does not implement cli.Flag (Apply method has pointer receiver)
/usr/local/gopath/src/github.com/schollz/find3-cli-scanner/main.go:98:15: cannot use cli.BoolFlag literal (type cli.BoolFlag) as type cli.Flag in array or slice literal:
    cli.BoolFlag does not implement cli.Flag (Apply method has pointer receiver)
/usr/local/gopath/src/github.com/schollz/find3-cli-scanner/main.go:98:15: too many errors

I am using go version go1.11.13 linux/arm

SerkanSipahi commented 4 years ago

I can confirm this issue. Im using macOS Mojave.

Titaniumtown commented 4 years ago

Same issue, arch linux

schollz commented 4 years ago

I updated the get command, try this:

GO111MODULE=on go get -v github.com/schollz/find3-cli-scanner/v3 
Titaniumtown commented 4 years ago

Works perfectly now, thank you!