Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gen.go:6:2: no required module provides package github.com/shurcooL/go-goon #10

Open
gedw99 opened this issue Jun 24, 2021 · 0 comments

Comments

@gedw99
Copy link

gedw99 commented Jun 24, 2021

Hey !

https://gioui.org/ recommends using goexe, but its failing.

$ go run gioui.org/cmd/gogio -target js gioui.org/example/gophers
$ go get github.com/shurcooL/goexec
$ goexec 'http.ListenAndServe(":8080", http.FileServer(http.Dir("gophers")))'

You can reproduce using this code from: https://github.com/gioui/gio-example


cd gio-example/kitchen && gogio -o kitchen.web -target js .
cd gio-example/kitchen && goexec 'http.ListenAndServe(":8090", http.FileServer(http.Dir("kitchen.web")))'
/var/folders/wp/ff6sz9qs6g71jnm12nj2kbyw0000gp/T/goexec_221335739/gen.go:6:2: no required module provides package github.com/shurcooL/go-goon; to add it:
        go get github.com/shurcooL/go-goon
### Error ###
exit status 1
make: *** [web-run] Error 1

Maybe it makes sense to add a go.mod to the goexec project with go-goon required ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant