The Go tool hangs on parsing the examples directory which depends on v0.5.0 which has a naming conflict. This is preventing me from using vecty at all. This may be solved by either:
Updating examples/go.mod to include latest version of vecty
Excluding examples directory from being parsed by go tool by adding an underscore prefix to the directory name. This would also prevent it from breaking in the future thus removing the cost of maintenance
$ go mod tidy
go: downloading github.com/hexops/vecty v0.6.0
go: finding module for package github.com/hexops/vecty/example/todomvc/store/storeutil
go: finding module for package github.com/hexops/vecty/example/todomvc/dispatcher
go: finding module for package github.com/hexops/vecty/example/todomvc/store
go: finding module for package github.com/hexops/vecty/example/todomvc/store/model
go: finding module for package github.com/gopherjs/gopherjs/js
go: finding module for package github.com/hexops/vecty/example/todomvc/actions
go: finding module for package github.com/hexops/vecty/example/todomvc/components
go: downloading github.com/hexops/vecty/example v0.0.0-20211024222325-2abc3fbe89ef
go: downloading github.com/gopherjs/gopherjs v0.0.0-20220104163920-15ed2e8cf2bd
go: found github.com/hexops/vecty/example/todomvc/actions in github.com/hexops/vecty/example v0.0.0-20211024222325-2abc3fbe89ef
go: found github.com/hexops/vecty/example/todomvc/components in github.com/hexops/vecty/example v0.0.0-20211024222325-2abc3fbe89ef
go: found github.com/hexops/vecty/example/todomvc/dispatcher in github.com/hexops/vecty/example v0.0.0-20211024222325-2abc3fbe89ef
go: found github.com/hexops/vecty/example/todomvc/store in github.com/hexops/vecty/example v0.0.0-20211024222325-2abc3fbe89ef
go: found github.com/hexops/vecty/example/todomvc/store/model in github.com/hexops/vecty/example v0.0.0-20211024222325-2abc3fbe89ef
go: found github.com/gopherjs/gopherjs/js in github.com/gopherjs/gopherjs v0.0.0-20220104163920-15ed2e8cf2bd
go: found github.com/hexops/vecty/example/todomvc/store/storeutil in github.com/hexops/vecty/example v0.0.0-20211024222325-2abc3fbe89ef
go: github.com/hexops/vecty/example@v0.0.0-20211024222325-2abc3fbe89ef requires
github.com/hexops/vecty@v0.5.0: parsing go.mod:
module declares its path as: github.com/gopherjs/vecty
but was required as: github.com/hexops/vecty
$ gopherjs get
go get: github.com/hexops/vecty/example@v0.0.0-20211024222325-2abc3fbe89ef requires
github.com/hexops/vecty@v0.5.0: parsing go.mod:
module declares its path as: github.com/gopherjs/vecty
but was required as: github.com/hexops/vecty
The Go tool hangs on parsing the
examples
directory which depends on v0.5.0 which has a naming conflict. This is preventing me from using vecty at all. This may be solved by either:examples/go.mod
to include latest version of vectyexamples
directory from being parsed by go tool by adding an underscore prefix to the directory name. This would also prevent it from breaking in the future thus removing the cost of maintenance