简体   繁体   English

如果Deps是最新的,请阻止使用deps.get混合网络?

[英]Prevent mix deps.get using the network if the deps are up to date?

I'm attempting to make an escrow build of some Elixir code. 我正在尝试建立一些Elixir代码的托管文件。 That is: I want to provide a tarball that contains everything needed to build my project. 即:我想提供一个包含构建项目所需的一切的tarball。

So: I run mix deps.get while building the tarball, which works fine. 所以:我在构建tarball时运行mix deps.get ,效果很好。

To verify that the build has everything, I'm running it on a machine (actually a docker container) that has no connection to the Internet. 为了验证构建是否包含所有内容,我正在没有互联网连接的机器(实际上是docker容器)上运行它。

But when I run make , which runs mix deps.get , it attempts to hit repo.hex.pm , even though the dependencies are up to date (according to mix.lock ). 但是当我运行make ,它运行mix deps.get ,即使依赖关系是最新的(根据mix.lock ),它mix deps.get尝试打repo.hex.pm

How do I stop it doing this? 如何停止执行此操作?

As far as I know, there is no way to do it. 据我所知,这是没有办法的。

You probably should not run the mix deps.get on that container, it will fails on the compile task if you don't have all the dependencies. 您可能不应该在该容器上运行mix deps.get ,如果没有所有依赖项,它将在编译任务中失败。

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

相关问题 mix deps.get失败(依赖问题) - mix deps.get fails (dependency issue) 编写一个在deps.get之后运行的Mix任务 - Write a Mix task that runs after deps.get Elixir:mix deps.get 请求失败(403)并且没有缓存副本 - Elixir: mix deps.get Request failed (403) and no cached copy mix deps.get失败(似乎缺少ssl?) - mix deps.get failed (seems missing ssl?) 在安装守护程序后,在elixr守护程序中混合deps.get错误 - mix deps.get error in elixr guardian after guardian installation 使用“mix deps.get”安装后无法在 elixir shell 中运行 function - Can't run function in elixir shell after installing with `mix deps.get` 运行mix deps.get引发:erlang.binary_to_atom参数错误 - Running mix deps.get throws :erlang.binary_to_atom argument error mix deps.get 失败,{:failed_connect, [{:to_address, {'repo.hex.pm', 443}}, {:inet, [:inet], {:option, :server_only, :honor_cipher_order}}]} - mix deps.get fails, {:failed_connect, [{:to_address, {'repo.hex.pm', 443}}, {:inet, [:inet], {:option, :server_only, :honor_cipher_order}}]} 长生不老药-不能在两次下降之间进行Record.extract - Elixir - Can't get to Record.extract between 2 Deps 当2个库共享相同的依赖项并需要不同的版本时,混合deps错误 - mix deps error when 2 libraries share the same dependancy and require different versions
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM