当我运行dep init
时,需要很长时间,而且不会生成Gopkg.toml
和Gopkg.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.