“dep init -v”,它不会生成Gopkg.toml和Gopkg.lock,为什么?

时间:2018-03-01 22:38:36

标签: go vendor

当我运行dep init时,需要很长时间,而且不会生成Gopkg.tomlGopkg.lock。为什么不生成这些文件?

代码为here

zhiwei@myVM:~/go/bin$ ll
total 29164
drwxr-xr-x 2 zhiwei zhiwei     4096 Mar  1 08:52 ./
drwxr-xr-x 6 zhiwei zhiwei     4096 Feb 28 21:22 ../
-rwxrwxr-x 1 zhiwei zhiwei 13413097 Mar  1 08:52 dep*
-rwxr-xr-x 1 zhiwei zhiwei 16437361 Feb 26 21:35 micro*
zhiwei@myVM:~/go/bin$ cd ../src/github.com/micro-youtube-
drizzler/srv/download/
zhiwei@myVM:~/go/src/github.com/micro-youtube-drizzler/srv/download$ l
bak/  Dockerfile*  main.go*  proto/  README.md*
zhiwei@myVM:~/go/src/github.com/micro-youtube-drizzler/srv/download$ dep init -v
Getting direct dependencies...
Checked 3 directories for packages.
Found 7 direct dependencies.

0 个答案:

没有答案