revel: I am creating a revel project and I cannot get it to work.
I have installed Go guiding myself with the Go webpage tutorial, I installed with ease. However when I tried to install this framework I got stopped here:
`userx:~$ go version go version go1.16 linux/amd64
userx:~$ cd $GOPATH
userx:~/go$ revel new -a myapp Revel executing: create a skeleton Revel application Your application has been created in: /home/userx/go/myapp
You can run it with: revel run -a myapp
userx:~/go$ revel run -a myapp ERROR 11:42:32 file.go:372: Error seeking=github.com/revel/revel count=1 App Import Path=github.com/revel/revel filesystem path=github.com/revel/revel errors=“[-: no required module provides package github.com/revel/revel; to add it:\n\tgo get github.com/revel/revel]” Downloading related packages … completed. Revel executing: run a Revel application Downloading related packages … completed. ERROR 11:42:37 revel.go:107: Unable to execute error=“Revel paths[error Failed to load module. Import of path failed modulePath:github.com/revel/modules/static error:No files found in import path github.com/revel/modules/static ]”`
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 16 (1 by maintainers)
Looks like cd’ing into the directory after it fails and running
go mod tidyfixes it.Hello! Totally new to both Revel and go, but I just hit all of this stuff with a fresh installation. Is there a way to re-open this ticket, or is there a newer ticket I could follow? FWIW, @alexgeek’s
go mod tidycomment above solved the problem for me.(Thank you to everyone who’s contributed to Revel and to this thread. It was very helpful.)
+1 the command
go mod tidyseems to be working , post installation of all go dependencies . Thanks @alexgeek for the helpful tip .Thanks, @meagar your comment helped. Also, I had to get
memcache.+1,go mod tidy, help me
Sounds good, im going to reopen this ticket to track the progress on the go1.16 BTW did you know Revel supports the fasthttp engine? See this. The core packages allow substituting custom engine connectors using this interface