client9 / misspell

Correct commonly misspelled English words in source files
MIT License
1.35k stars 113 forks source link

golang code in sources dir breaks "go get" #65

Closed shawnps closed 8 years ago

shawnps commented 8 years ago
$ go get -u github.com/client9/misspell/...
# github.com/client9/misspell/sources/wikipedia-pages
../../../github.com/client9/misspell/sources/wikipedia-pages/findtypo.go:682: main redeclared in this block
    previous declaration at ../../../github.com/client9/misspell/sources/wikipedia-pages/count.go:67
../../../github.com/client9/misspell/sources/wikipedia-pages/merge.go:19: freqCount redeclared in this block
    previous declaration at ../../../github.com/client9/misspell/sources/wikipedia-pages/count.go:17
../../../github.com/client9/misspell/sources/wikipedia-pages/merge.go:23: newFreqCount redeclared in this block
    previous declaration at ../../../github.com/client9/misspell/sources/wikipedia-pages/count.go:21
../../../github.com/client9/misspell/sources/wikipedia-pages/merge.go:86: main redeclared in this block
    previous declaration at ../../../github.com/client9/misspell/sources/wikipedia-pages/findtypo.go:682
../../../github.com/client9/misspell/sources/wikipedia-pages/score.go:39: loadCSV redeclared in this block
    previous declaration at ../../../github.com/client9/misspell/sources/wikipedia-pages/merge.go:28
../../../github.com/client9/misspell/sources/wikipedia-pages/score.go:72: LoadWordList redeclared in this block
    previous declaration at ../../../github.com/client9/misspell/sources/wikipedia-pages/findtypo.go:540
../../../github.com/client9/misspell/sources/wikipedia-pages/score.go:97: main redeclared in this block
    previous declaration at ../../../github.com/client9/misspell/sources/wikipedia-pages/merge.go:86
# github.com/client9/misspell/sources/reddit
../../../github.com/client9/misspell/sources/reddit/download.go:20: wg redeclared in this block
    previous declaration at ../../../github.com/client9/misspell/sources/reddit/count.go:30
../../../github.com/client9/misspell/sources/reddit/download.go:23: Reddit redeclared in this block
    previous declaration at ../../../github.com/client9/misspell/sources/reddit/count.go:33
../../../github.com/client9/misspell/sources/reddit/download.go:35: doit redeclared in this block
    previous declaration at ../../../github.com/client9/misspell/sources/reddit/count.go:79
../../../github.com/client9/misspell/sources/reddit/download.go:90: worker redeclared in this block
    previous declaration at ../../../github.com/client9/misspell/sources/reddit/count.go:148
../../../github.com/client9/misspell/sources/reddit/download.go:123: main redeclared in this block
    previous declaration at ../../../github.com/client9/misspell/sources/reddit/count.go:155
../../../github.com/client9/misspell/sources/reddit/findtypo.go:685: main redeclared in this block
    previous declaration at ../../../github.com/client9/misspell/sources/reddit/download.go:123
../../../github.com/client9/misspell/sources/reddit/merge.go:19: freqCount redeclared in this block
    previous declaration at ../../../github.com/client9/misspell/sources/reddit/count.go:21
../../../github.com/client9/misspell/sources/reddit/merge.go:23: newFreqCount redeclared in this block
    previous declaration at ../../../github.com/client9/misspell/sources/reddit/count.go:25
../../../github.com/client9/misspell/sources/reddit/merge.go:86: main redeclared in this block
    previous declaration at ../../../github.com/client9/misspell/sources/reddit/findtypo.go:685
../../../github.com/client9/misspell/sources/reddit/score.go:39: loadCSV redeclared in this block
    previous declaration at ../../../github.com/client9/misspell/sources/reddit/merge.go:28
../../../github.com/client9/misspell/sources/reddit/score.go:39: too many errors
client9 commented 8 years ago

can you check @shawnps ?

shawnps commented 8 years ago

@client9 seeing a different error now:

➜  ~ go get -u github.com/client9/misspell/...
package github.com/client9/misspell/cmd/genwords: cannot find package "github.com/client9/misspell/cmd/genwords" in any of:
    /usr/local/Cellar/go/1.6.2/libexec/src/github.com/client9/misspell/cmd/genwords (from $GOROOT)
    /Users/shawn/mygo/src/github.com/client9/misspell/cmd/genwords (from $GOPATH)
package github.com/client9/misspell/sources/foldoc: cannot find package "github.com/client9/misspell/sources/foldoc" in any of:
    /usr/local/Cellar/go/1.6.2/libexec/src/github.com/client9/misspell/sources/foldoc (from $GOROOT)
    /Users/shawn/mygo/src/github.com/client9/misspell/sources/foldoc (from $GOPATH)
package github.com/client9/misspell/sources/reddit: cannot find package "github.com/client9/misspell/sources/reddit" in any of:
    /usr/local/Cellar/go/1.6.2/libexec/src/github.com/client9/misspell/sources/reddit (from $GOROOT)
    /Users/shawn/mygo/src/github.com/client9/misspell/sources/reddit (from $GOPATH)
package github.com/client9/misspell/sources/wikipedia-pages: cannot find package "github.com/client9/misspell/sources/wikipedia-pages" in any of:
    /usr/local/Cellar/go/1.6.2/libexec/src/github.com/client9/misspell/sources/wikipedia-pages (from $GOROOT)
    /Users/shawn/mygo/src/github.com/client9/misspell/sources/wikipedia-pages (from $GOPATH)
shawnps commented 8 years ago

Seems to work if I don't do /... and do these instead:

➜  ~ go get -u github.com/client9/misspell    
➜  ~ go get -u github.com/client9/misspell/cmd/misspell
shawnps commented 8 years ago

README says to install with the second command so I'll close the issue. Thanks @client9!