mattn / gom

Go Manager - bundle for go
1.38k stars 92 forks source link

Failed `gom install ` #66

Closed yudppp closed 8 years ago

yudppp commented 8 years ago

Hi mattn, The commit supported child package build.

Failed gom installafter this commit.

Failed Gomfile sample is

gom 'github.com/justinas/nosurf'

log:

$ gom install
downloading github.com/justinas/nosurf
warning: code.google.com is shutting down; import path code.google.com/p/go.net/websocket will stop working
warning: package github.com/justinas/nosurf/examples
    imports code.google.com/p/go.net/websocket
# github.com/justinas/nosurf/examples
examples/goji.go:15: templateString redeclared in this block
    previous declaration at examples/advanced.go:15
examples/goji.go:34: templ redeclared in this block
    previous declaration at examples/advanced.go:31
examples/goji.go:58: main redeclared in this block
    previous declaration at examples/advanced.go:55
examples/simple.go:12: templateString redeclared in this block
    previous declaration at examples/goji.go:15
examples/simple.go:31: templ redeclared in this block
    previous declaration at examples/goji.go:34
examples/simple.go:44: main redeclared in this block
    previous declaration at examples/goji.go:58
examples/web.go:12: templateString redeclared in this block
    previous declaration at examples/simple.go:12
examples/web.go:28: templ redeclared in this block
    previous declaration at examples/simple.go:31
examples/web.go:41: main redeclared in this block
    previous declaration at examples/simple.go:44
gom:  exit status 2

github.com/justinas/nosurf/examples can't use go get

My commit successed gom install

But this code is bad code. I want to set optional exclude path or not insalled child package.

What would be the best thing to do?

mattn commented 8 years ago

could you please send me pull-request?

yudppp commented 8 years ago

thk.