gnosischain / posdao-test-setup

Integration tests setup for POSDAO, a Proof of Stake Decentralized Autonomous Organization consensus
https://forum.poa.network/c/posdao
14 stars 17 forks source link

npm run all fails on get-all-submodules step #49

Closed pshenmic closed 5 years ago

pshenmic commented 5 years ago

Node.JS v10.16.0 Ubuntu 18.04.2

Also tried to replace git with the https in .gitmodules, but script still trying to pull everything from git (magic?)

> posdao-test-setup@0.0.1 all /tmp/posdao-test-setup
> npm i && npm run get-all-submodules && npm run cleanup && npm run compile-posdao-contracts && npm run make-spec && npm run start-test-setup && npm run test && npm run stop-test-setup

audited 73948 packages in 3.359s
found 0 vulnerabilities

> posdao-test-setup@0.0.1 get-all-submodules /tmp/posdao-test-setup
> git submodule update --init --remote

Cloning into '/tmp/posdao-test-setup/posdao-contracts'...
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
fatal: clone of 'git@github.com:poanetwork/posdao-contracts.git' into submodule path '/tmp/posdao-test-setup/posdao-contracts' failed
Failed to clone 'posdao-contracts'. Retry scheduled
Cloning into '/tmp/posdao-test-setup/posdao-contracts'...
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
fatal: clone of 'git@github.com:poanetwork/posdao-contracts.git' into submodule path '/tmp/posdao-test-setup/posdao-contracts' failed
Failed to clone 'posdao-contracts' a second time, aborting
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! posdao-test-setup@0.0.1 get-all-submodules: `git submodule update --init --remote`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the posdao-test-setup@0.0.1 get-all-submodules script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/user/.npm/_logs/2019-06-24T06_42_17_113Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! posdao-test-setup@0.0.1 all: `npm i && npm run get-all-submodules && npm run cleanup && npm run compile-posdao-contracts && npm run make-spec && npm run start-test-setup && npm run test && npm run stop-test-setup`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the posdao-test-setup@0.0.1 all script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/user/.npm/_logs/2019-06-24T06_42_17_189Z-debug.log
vkomenda commented 5 years ago

Thanks for reporting this. As a quick fix you could use the https address in .gitmodules.

phahulin commented 5 years ago

You might need to do git submodule sync before re-running npm run all. Or just re-clone the repo fresh and change .gitmodules first, before running any npm commands