1 回答

TA贡献1834条经验 获得超8个赞
这个问题是在golang-nuts讨论后发现的。只是在下面再次引用它:-
我的猜测是因为 Mac 文件系统保留大小写但不区分大小写,这意味着在 mac os 中“floRest”和“florest”是同一个文件/目录,而在 linux 上它们是 2 个不同的文件。(您也可以将 mac 文件系统配置为区分大小写,但这不是默认设置)。
正如您在日志中看到的:
mv $WORK/github.com/jabong/floRest/src/examples.a /Users/debraj/golang/pkg/darwin_amd64/github.com/jabong/floRest/src/examples.a
mkdir -p /Users/debraj/golang/pkg/darwin_amd64/github.com/jabong/florest/src/
cp $WORK/github.com/jabong/florest/src/examples.a /Users/debraj/golang/pkg/darwin_amd64/github.com/jabong/florest/src/examples.a
去安装github.com/jabong/florest/src/examples:打开/var/folders/lp/3q9_2mn51hd9s4yj_jcf3jxm0000gp/T/go-build665863426/github.com/jabong/florest/src/examples.a:没有这样的文件或目录
文件“floRest/src/examples.a”被移动,然后尝试复制“florest/src/examples.a”,这是mac os上的同一个文件,它不再存在。
为了克隆我使用的 repo:-
git clone https://github.com/jabong/florest/
因此,在 mac 中,我的代码在目录中签出florest
。但是实际的仓库名称是https://github.com/jabong/floRest/
并且在代码中它被引用为floRest
导致问题的原因。
- 1 回答
- 0 关注
- 283 浏览
添加回答
举报