我在西湖1 2019-04-12 12:13
浏览 80
已采纳

运行dep时出错,请确保:清单,锁和供应商的分组写入:无法确定VerifyVendor声称的统计文件存在

I'm getting the following error when running dep ensure:

Grouped write of manifest, lock and vendor: could not stat file that VerifyVendor claimed existed: stat "path to package inside vendor": no such file or directory

This is my Gopkg.toml:

[[constraint]]  
  name = "github.com/PuerkitoBio/goquery"   
  version = "1.5.0" 

 [[constraint]] 
  branch = "master" 
  name = "github.com/auth0-community/go-auth0"  

 [[constraint]] 
  name = "github.com/aws/aws-sdk-go"    
  version = "1.16.32"   

 [[constraint]] 
  name = "github.com/coocood/freecache" 
  version = "1.0.1" 

 [[constraint]] 
  branch = "master" 
  name = "github.com/gregjones/httpcache"   

 [[constraint]] 
  branch = "master" 
  name = "github.com/julienschmidt/httprouter"  

 [[constraint]] 
  branch = "master" 
  name = "github.com/justinas/alice"    

 [[constraint]] 
  name = "github.com/microcosm-cc/bluemonday"   
  version = "1.0.2" 

 [[constraint]] 
  name = "github.com/mssola/user_agent" 
  version = "0.4.1" 

 [[constraint]] 
  name = "github.com/rs/cors"   
  version = "1.6.0" 

 [[constraint]] 
  name = "github.com/sethgrid/pester"   
  version = "1.0.0" 

 [[constraint]] 
  name = "github.com/sirupsen/logrus"   
  version = "1.3.0" 

 [[constraint]] 
  name = "github.com/stretchr/testify"  
  version = "1.3.0" 

 [[constraint]] 
  name = "gopkg.in/dgrijalva/jwt-go.v3" 
  version = "3.2.0" 

 [[constraint]] 
  name = "gopkg.in/square/go-jose.v2"   
  version = "2.2.2"
  • 写回答

1条回答 默认 最新

  • doubi6303 2019-04-12 12:13
    关注

    I resolved this issue by deleting the vendor directory.

    Running dep ensure again re-created the vendor folder with all required dependencies.

    This can sometimes also be resolved by fixing up the folder permissions, but deleting the folder seems to be the easiest way to fix this.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 (标签-STM32|关键词-智能小车)
  • ¥20 关于#stm32#的问题,请各位专家解答!
  • ¥15 (标签-python)
  • ¥15 第一个已完成,求第二个做法
  • ¥20 搭建awx,试了很多版本都有错
  • ¥15 java corba的客户端该如何指定使用本地某个固定IP去连接服务端?
  • ¥15 activiti工作流问题,求解答
  • ¥15 有人写过RPA后台管理系统么?
  • ¥15 Bioage计算生物学年龄
  • ¥20 如何将FPGA Alveo U50恢复原来出厂设置哇?