I have a Phoenix project which has a dependency that pulls from a private hosted git server, from a private repository which requires authentication to access. On my local machine, which is configured such that I do not have to authenticate every time I access the git repository, running
'mix deps.get' works just fine, and successfully clones the dependency into the deps directory.
However, I have to work with a server with which such a git configuration is not possible (and I cannot change this), and accessing git requires entering credentials (both username and password) every time any repository on this private git server is accessed. When I run 'mix deps.get' on this server, I receive the following error:
Cloning into '/home/linuxos/Apps/MyApp/Web/my_app/deps/my_api'...
The seems to be failing because there's no username, but unlike using a git command directly, it does not prompt for credentials. Is there some way to get Mix to prompt for git credentials? Again, I cannot configure these credentials in a configuration file on this server -- credentials need to be entered in at the time the command is run.
Thanks,
Brad