celo-monorepo icon indicating copy to clipboard operation
celo-monorepo copied to clipboard

Attestation Service v1.5.0: Docker build failing with outdated protocol git://

Open aaronmboyd opened this issue 2 years ago • 0 comments

Expected Behavior

Using celo-monorep at tags/attestation-service-v1.5.0 /dockerfiles/attestation-service/Dockerfile should build cleanly from /celo-monorepo folder

Current Behavior

Fails to build due to a yarn dependency still using outdated git:// protocol which is now deprecated at GitHub and times out.

Fix (Tested successfully)

Force replace git configuration to https://

Add following line to the Dockerfile before the yarn install command: RUN git config --global url."https://".insteadOf git://

See: https://github.blog/2021-09-01-improving-git-protocol-security-github/

aaronmboyd avatar Oct 12 '22 10:10 aaronmboyd