我有一个 Revel 项目,但我无法启动它,因为每次我运行 go mod tidy 时,它看起来像是在寻找模块,但它并没有将找到的模块放入 go.sum
这是我的环境
GOENV = C:\Users\mycomp\AppData\Roaming\go\env
GOMOD = C:\Program Files\Go\src\myproject\go.mod
GOPATH = C:\Users\micha\go
go version
go version go1.18.3 windows/amd64
revel version
Revel executing: displays the Revel Framework and Go version
Revel Framework : Unknown (1.1.0 remote master branch)
Revel Cmd : 1.1.2 (1.1.2 remote master branch)
Revel Modules : Unknown (1.1.0 remote master branch)
go mod tidy
go: finding module for package github.com/PaesslerAG/jsonpath
go: finding module for package github.com/tdewolff/test
go: finding module for package github.com/PaesslerAG/gval
go: found github.com/tdewolff/test in github.com/tdewolff/test v1.0.7
go: found github.com/PaesslerAG/gval in github.com/PaesslerAG/gval v1.2.0
go: found github.com/PaesslerAG/jsonpath in github.com/PaesslerAG/jsonpath v0.1.1
go mod init myproject似乎有效,因为它创建go.mod了,但它很奇怪,因为它只创建了这一行,通常它创建了很多我需要的模块
module myproject
go 1.18
然后当我输入时go mod tidy,它创建空go.sum。我想念什么?
POPMUISE
慕田峪4524236
随时随地看视频慕课网APP
相关分类