dsjmrpym220113739 2018-06-29 10:28
浏览 19

将revel与dep一起用于依赖项管理

I'm trying to create a production system with revel and go. I found dep as the version and dependency management tool.

Since this is going to be a production system, I wanted to lock down the versions I'm using, using dep. It seems to be working fine if I run the server in prod mode but fails with the error if i try to run in dev mode

CRIT 20:46:56 revel watcher.go:78: Watcher: Failed to stat watched path section=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: no such file or directory"

My Gopkg.toml looks like this

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
  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 素材场景中光线烘焙后灯光失效
    • ¥15 请教一下各位,为什么我这个没有实现模拟点击
    • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
    • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
    • ¥20 有关区间dp的问题求解
    • ¥15 多电路系统共用电源的串扰问题
    • ¥15 slam rangenet++配置
    • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
    • ¥15 ubuntu子系统密码忘记
    • ¥15 保护模式-系统加载-段寄存器