ZenVoich / mops

Package manager for the Motoko programming language
https://mops.one
MIT License
40 stars 5 forks source link

`mops sources` and `mops install` hangs in docker container #256

Open fxgst opened 2 weeks ago

fxgst commented 2 weeks ago

When running mops in a Docker container on an Apple Silicon Mac, mops hangs indefinitely on various commands, providing no output why it is hanging. Steps to reproduce:

export DOCKER_DEFAULT_PLATFORM=linux/amd64 # set platform to amd64 for dfx
docker run -it node:latest bash # run a default node image

DFXVM_INIT_YES=true sh -ci "$(curl -fsSL https://internetcomputer.org/install.sh)"
source "$HOME/.local/share/dfx/env"
npm i -g ic-mops
mops init -y # hangs indefinitely on "Fetching default packages for dfx"

The same steps work on a linux machine. (you can omit the first step exporting DOCKER_DEFAULT_PLATFORM)

ZenVoich commented 2 weeks ago

Investigated that it hangs on actor method call.

Probably this issue related to https://github.com/dfinity/agent-js