5HT / fs

📁 FS: Windows, Linux, Mac Driver
https://fs.n2o.dev
Other
234 stars 69 forks source link

Compilation hangs when using Mix 1.3.4 in Docker #41

Closed hauleth closed 7 years ago

hauleth commented 7 years ago

When using Docker image elixir:1.3.4 compilation hangs after:

* creating /root/.mix/archives/hex-0.15.0
* creating /root/.mix/rebar
* creating /root/.mix/rebar3
Running dependency resolution...
* Getting fs (Hex package)
  Checking package (https://repo.hex.pm/tarballs/fs-2.12.0.tar)
  Fetched package
===> Error loading package registry: {read_error,
                                      {file_error,
                                       "/root/.cache/rebar3/hex/default/registry",
                                       enoent}}
===> Package <<"pc">> not found. Fetching registry updates and trying again...
===> Updating package registry...
===> Fetching registry from "https://repo.hex.pm:443/registry.ets.gz?"
===> Writing registry to /root/.cache/rebar3/hex/default/registry
===> Generating package index...
===> [cloudi_service_oauth1:1.5.1] Only existing version of cloudi_service_db_riak is 1.3.3 which does not match constraint ~> 1.5.1. Using anyway, but it is not guaranteed to work.
===> [partisan:0.1.1] Only existing version of acceptor_pool is 1.0.0-rc.0 which does not match constraint ~> 1.0.0-rc.0. Using anyway, but it is not guaranteed to work.
===> Writing index to /root/.cache/rebar3/hex/default/packages.idx
===> Fetching pc ({pkg,<<"pc">>,<<"1.5.0">>})
===> Successfully downloaded https://repo.hex.pm:443/tarballs/pc-1.5.0.tar?
===> Downloaded package, caching at /root/.cache/rebar3/hex/default/packages/pc-1.5.0.tar
===> Writing {pkg,<<"pc">>,<<"1.5.0">>,
                  <<"FA98A182D6AC141749427E2876C724E35EE9A2BC025F1CEA1CAD5DB3D538A5EC">>} to cache at /root/.cache/rebar3/hex/default/packages/pc-1.5.0.tar
===> Moving checkout "/tmp/.tmp_dir881225188068" to "/app/deps/fs/_build/default/plugins/pc"
===> sh info:
    cwd: "/app/deps/fs"
    cmd: mv /tmp/.tmp_dir881225188068 /app/deps/fs/_build/default/plugins/pc

===>    opts: [{use_stdout,false},abort_on_error]

===> Port Cmd: mv /tmp/.tmp_dir881225188068 /app/deps/fs/_build/default/plugins/pc
Port Opts: [exit_status,{line,16384},use_stdio,stderr_to_stdout,hide,eof]

PoC repo: https://github.com/hauleth/poc-fs-bug

Tested on GitLab CI and on my local machine (Docker on Mac).

5HT commented 7 years ago

package pc has nothing to do with fs

cmd: mv /tmp/.tmp_dir881225188068 /app/deps/fs/_build/default/plugins/pc
===>    opts: [{use_stdout,false},abort_on_error]

I see only crashing of your pc or something :-)

5HT commented 7 years ago

Recall for what we need pc plugin? I remove it.

5HT commented 7 years ago

Please check!