hexops / vecty

Vecty lets you build responsive and dynamic web frontends in Go using WebAssembly, competing with modern web frameworks like React & VueJS.
BSD 3-Clause "New" or "Revised" License
2.8k stars 143 forks source link

Examples go.mod file conflict #288

Closed soypat closed 2 years ago

soypat commented 2 years ago

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:

$ 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
soypat commented 2 years ago

My bad, copied and pasted todomvc example without editing import paths.