在使用glide包依赖管理,报错。描述如下:
1. go版本1.8.3,windows7 操作系统
2. 目录结构:
```
gowatch
-------------src
---------main.go
```
设置了两个gopath 一个是系统用的,在go的安装目录 ,另一个是当前项目将D:\goproject\gowatch设置为gopath.
3、操作
在gowatch 目录下面:
glide init
glide up
结果报错
```
D:\goproject\gowatch>glide init
[INFO] Generating a YAML configuration file and guessing the dependencies
[INFO] Attempting to import from other package managers (use --skip-import to skip)
[INFO] Scanning code to look for dependencies
[INFO] --> Found reference to github.com\howeyc\fsnotify
[INFO] --> Found reference to github.com\nestgo\log
[INFO] --> Found reference to gopkg.in\yaml.v1
[INFO] Writing configuration file (glide.yaml)
[INFO] Would you like Glide to help you find ways to improve your glide.yaml configuration?
[INFO] If you want to revisit this step you can use the config-wizard command at any time.
[INFO] Yes (Y) or No (N)?
Y
[INFO] Looking for dependencies to make suggestions on
[INFO] --> Scanning for dependencies not using version ranges
[INFO] --> Scanning for dependencies using commit ids
[INFO] Gathering information on each dependency
[INFO] --> This may take a moment. Especially on a codebase with many dependencies
[INFO] --> Gathering release information for dependencies
[INFO] --> Looking for dependency imports where versions are commit ids
[INFO] Here are some suggestions...
[INFO] The package github.com/howeyc/fsnotify appears to have Semantic Version releases (http://semver.org).
[INFO] The latest release is v0.9.0. You are currently not using a release. Would you like
[INFO] to use this release? Yes (Y) or No (N)
Y
[INFO] Would you like to remember the previous decision and apply it to future
[INFO] dependencies? Yes (Y) or No (N)
Y
[INFO] Updating github.com/howeyc/fsnotify to use the release v0.9.0 instead of no release
[INFO] The package github.com/howeyc/fsnotify appears to use semantic
versions (http://semver.org).
[INFO] Would you like to track the latest minor or patch releases (major.minor.patch)?
[INFO] Tracking minor version releases would use '>= 0.9.0, < 1.0.0' ('^0.9.0').
Tracking patch version
[INFO] releases would use '>= 0.9.0, < 0.10.0' ('~0.9.0').
For more information on Glide versions
[INFO] and ranges see https://glide.sh/docs/versions
[INFO] Minor (M), Patch (P), or Skip Ranges (S)?
M
[INFO] Would you like to remember the previous decision and apply it to future
[INFO] dependencies? Yes (Y) or No (N)
Y
[INFO] Updating github.com/howeyc/fsnotify to
use the range ^0.9.0 instead of commit id v0.9.0
[INFO] Configuration changes have been made. Would you like to write these
[INFO] changes to your configuration file? Yes (Y) or No (N)
Y
[INFO] Writing updates to configuration file (glide.yaml)
[INFO] You can now edit the glide.yaml file.:
[INFO] --> For more information on versions and
ranges see https://glide.sh/docs/versions/
[INFO] --> For details on additional metadata
see https://glide.sh/docs/glide.yaml/
```
```
D:\goproject\gowatch>glide up
[INFO] Downloading dependencies. Please wait...
[INFO] --> Fetching updates for gopkg.in/yaml.v1
[INFO] --> Fetching updates for github.com/howeyc/fsnotify
[INFO] --> Fetching updates for github.com/nestgo/log
[INFO] --> Detected semantic version. Setting version for
github.com/howeyc/fsnotify to v0.9.0
[INFO] Resolving imports
[INFO] Downloading dependencies. Please wait...
[INFO] Setting references for remaining imports
[INFO] Exporting resolved dependencies...
[INFO] --> Exporting github.com/howeyc/fsnotify
[INFO] --> Exporting github.com/nestgo/log
[INFO] --> Exporting gopkg.in/yaml.v1
[INFO] Replacing existing vendor dependencies
[ERROR] Unable to export dependencies to vendor directory:
Error moving files: exit status 1. output: �ܾ����ʡ�
```
哪位大神了解glide的求指点![截图00.jpg](http://studygolang.qiniudn.com/170722/0ad08c5ed82310860c83196c9b03079a.jpg)
有疑问加站长微信联系(非本文作者)