简体   繁体   English

为什么不“混合”拉这种传递依赖?

[英]Why doesn't `mix` pull this transitive dependency?

exsync has a dependency exfswatch that has a dependency fs . exsync有一个依赖项exfswatch ,它具有依赖关系fs

If I run mix deps.get in exsync , fs is not pulled. 如果我运行mix deps.getexsyncfs不拉。 If I run mix deps.get in exfswatch , it is pulled. 如果我运行mix deps.getexfswatch ,它被上拉。 Why? 为什么?

Hex packages can depend only on other hex packages. Hex包只能依赖于其他十六进制包。 The fs package is pulled in as a git dependency. fs包作为git依赖项被引入。 For hex the exfswatch package does not depend on fs - there's a huge warning where you're publishing such a package to hex. 对于hex, exfswatch包不依赖于fs - 在将这样的包发布到hex时会有一个巨大的警告。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM