0

我正在尝试创建一个随心所欲的生产系统。我发现 dep 作为版本和依赖管理工具。

由于这将是一个生产系统,我想使用 dep 锁定我正在使用的版本。如果我在 prod 模式下运行服务器似乎工作正常,但如果我尝试在 dev 模式下运行则失败并出现错误

CRIT 20:46:56 revel watcher.go:78:Watcher:无法统计观看路径部分=util path=/home/shaumux/go/mercury/src/bitbucket.org/dataemo/mercury/vendor/github.com/ revel/revel/templates error="stat /home/shaumux/go/mercury/src/bitbucket.org/dataemo/mercury/vendor/github.com/revel/revel/templates:没有这样的文件或目录"

我的 Gopkg.toml 看起来像这样

required = ["github.com/revel/cmd/revel"]

[[constraint]]
  name = "github.com/revel/modules"
  version = "0.19.0"

[[constraint]]
  name = "github.com/revel/revel"
  version = "0.19.1"

[[override]]
  branch = "master"
  name = "github.com/xeonx/timeago"

[[override]]
  branch = "master"
  name = "github.com/revel/log15"

[[override]]
  version = "0.19.0"
  name = "github.com/revel/cmd"

[prune]
  go-tests = true
  unused-packages = true
4

0 回答 0