[英]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.