有关glide的使用报错

lmh860628 · 2017-07-22 03:30:00 · 1655 次点击 · 大约8小时之前 开始浏览    置顶
这是一个创建于 2017-07-22 03:30:00 的主题,其中的信息可能已经有所发展或是发生改变。

在使用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


有疑问加站长微信联系(非本文作者)

入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889

1655 次点击  
加入收藏 微博
5 回复  |  直到 2018-04-23 15:00:18
channel
channel · #1 · 8年之前

不清楚你这啥情况

lepig
lepig · #2 · 7年之前

兄弟 最后咋解决的啊 我也是win7 也出现类似问题

sunanxiang
sunanxiang · #3 · 7年之前

先使用glide install 安装一下,会生成vendor 目录。应该不可以直接使用glide up 吧,那个是对现有版本升级的吧。

lmh860628
lmh860628 · #4 · 7年之前

@sunanxiang 谢了,是这样的,先要安装一下。不过对于很多依赖库,不翻墙感觉包管理很鸡肋

sunanxiang
sunanxiang · #5 · 7年之前
lmh860628lmh860628 #4 回复

@sunanxiang 谢了,是这样的,先要安装一下。不过对于很多依赖库,不翻墙感觉包管理很鸡肋

确实很多包需要翻墙,自己配置一下代理吧。

添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传