dongxingqiu7943 2015-12-20 15:18
浏览 173

狂欢不能与GO15VENDOREXPERIMENT一起使用?

I'm using revel together with GO15VENDOREXPERIMENT. This implies that my revel package is located in the vendor folder inside my project folder:

$GOPATH\src\myproject\vendor\github.comevel

Revel and my project build correctly. Go implicitly changes the revel imports to:

"myproject/vendor/github.com/revel/revel

However, when I go to run my project, revel tries to import from the standard GOPATH. It does not recognize that I have GO15VENDOREXPERIMENT turned on.

c:\WorkspaceGo\go\src\myproject>revel run myproject
~
~ revel! http://revel.github.io
~
ERROR 2015/12/20 09:51:27 revel.go:281: Failed to find Revel with error: 
cannot find package "github.com/revel/revel" in any of:
    C:\Go\src\github.comevelevel (from $GOROOT)
    c:\WorkspaceGo\go\src\github.comevelevel (from $GOPATH)

How can I make revel recognize GO15VENDOREXPERIMENT so that it uses the correct GOPATH?

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 delta降尺度计算的一些细节,有偿
    • ¥15 Arduino红外遥控代码有问题
    • ¥15 数值计算离散正交多项式
    • ¥30 数值计算均差系数编程
    • ¥15 redis-full-check比较 两个集群的数据出错
    • ¥15 Matlab编程问题
    • ¥15 训练的多模态特征融合模型准确度很低怎么办
    • ¥15 kylin启动报错log4j类冲突
    • ¥15 超声波模块测距控制点灯,灯的闪烁很不稳定,经过调试发现测的距离偏大
    • ¥15 import arcpy出现importing _arcgisscripting 找不到相关程序