签出的版本不匹配glide.lock

问题描述 投票:0回答:1

我检查了使用滑行一个Golang项目,并且在回购一个glide.lock文件。

>>git clone https://github.com/uber/aresdb
>>cd aresdb/
>>git checkout v0.0.1
>>glide i
...
[INFO]  --> Found desired version locally gopkg.in/fsnotify/fsnotify.v1 
c2828203cd70a50dcccfb2761f8b1f8ceef9a8e9!
...

https://github.com/uber/aresdb/blob/v0.0.1/glide.lock定义fsnotify版本如下:

- name: gopkg.in/fsnotify/fsnotify.v1
  version: c2828203cd70a50dcccfb2761f8b1f8ceef9a8e9

所以,我理解fsnotify(v1.4.7)的如下版本将使用

https://github.com/fsnotify/fsnotify/commit/c2828203cd70a50dcccfb2761f8b1f8ceef9a8e9

这是

https://github.com/fsnotify/fsnotify/releases/tag/v1.4.7

然而,当我看到从我结账下列文件,

vendor/github.com/hpcloud/tail/vendor/gopkg.in/fsnotify/fsnotify.v1/AUTHORS

它比https://github.com/fsnotify/fsnotify/blob/v1.4.7/AUTHORS不同

它似乎展示的是旧版本(https://github.com/fsnotify/fsnotify/blob/v1.2.1/AUTHORS

应该怎么解决呢?或我误解glide.lock是如何工作的?

谢谢!

问候,

SQR

git github glide-golang
1个回答
0
投票

还好,有通过间接依赖性引入的多个副本;我一直在寻找在错误的文件。

下面是相关副本:

vendor/gopkg.in/fsnotify/fsnotify.v1
© www.soinside.com 2019 - 2024. All rights reserved.