ivy 解决动态依赖

发布于 2024-09-01 12:53:03 字数 441 浏览 5 评论 0 原文

我正在使用 Ivy 来解决我的依赖关系。我们有一个很大的共享空间,我们使用的所有库都在其中,并且可以根据需要从中检索。

偶尔我们需要向现有的库版本添加一些额外的文件。例如,我们最近开始在 UI 库中使用图表组件。我们以前不需要它们,因此我获取了相关的 DLL,并将它们与现有 UI DLL 一起复制到共享空间中。

然而,默认情况下,运行 ivy 不会选择这些添加内容,大概是因为它们本地缓存在我的计算机上,而 ivy 只进行版本检查以查看它是否已经具有库 a 的 xyz 版本。它不会检查 ivy 存储库中库 a 的版本 xyz 是否已更改。

有没有办法让ivy检查存储库中库的结构更改,而不仅仅是检查本地缓存?

我尝试使用 但这似乎没有做任何事情。

谢谢。

I am using Ivy to resolve my dependencies. We have a big share space where all the libraries we use live and are retrieved from as needed.

Very occasionally we need to add some additional files to an existing library version. For example we recently started to use the charting components in a UI library. We hadn't previously needed them so I took the relevant DLLs and copied them into the share space with the existing UI DLLs.

However running ivy doesn't pick these additions up by default, presumably because they are locally cached on my machine and ivy only does a version check to see whether it already has version x.y.z of library a. It doesn't check whether version x.y.z of library a has changed in the ivy repository.

Is there a way of getting ivy to check the repository for structural changes to a library rather than just checking the local cache?

I tried using <ivy:resolve refresh="true"/> but that didn't seem to do anything.

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

赤濁 2024-09-08 12:53:03

如果更改依赖项的内容,它的版本号是否也应该更改?如果依赖关系仍在不断变化,也许您应该查看快照

If you change the content of a dependency, shouldn't its version number also change? If the dependency is still in flux, maybe you should look into snapshots.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文