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条回答

    报告相同问题?

    悬赏问题

    • ¥50 永磁型步进电机PID算法
    • ¥15 sqlite 附加(attach database)加密数据库时,返回26是什么原因呢?
    • ¥88 找成都本地经验丰富懂小程序开发的技术大咖
    • ¥15 如何处理复杂数据表格的除法运算
    • ¥15 如何用stc8h1k08的片子做485数据透传的功能?(关键词-串口)
    • ¥15 有兄弟姐妹会用word插图功能制作类似citespace的图片吗?
    • ¥200 uniapp长期运行卡死问题解决
    • ¥15 latex怎么处理论文引理引用参考文献
    • ¥15 请教:如何用postman调用本地虚拟机区块链接上的合约?
    • ¥15 为什么使用javacv转封装rtsp为rtmp时出现如下问题:[h264 @ 000000004faf7500]no frame?