Use the git CLI with cargo (#9223)

Hopefully this makes things more stable. This is based on Alex's suggestion [here](https://opensource.eff.org/eff-open-source/pl/ouf996zuxjnkdxwq81bihxak7e). 

* git cli in docker

* git cli in snap

* git cli in dns snaps

* use true strings
This commit is contained in:
Brad Warren
2022-03-02 12:10:01 -08:00
committed by GitHub
parent 6e8f58e3f6
commit b95deaa7e4
3 changed files with 13 additions and 0 deletions
+5
View File
@@ -26,6 +26,10 @@ RUN apk add --no-cache --virtual .certbot-deps \
ca-certificates \
binutils
# We set this environment variable and install git while building to try and
# increase the stability of fetching the rust crates needed to build the
# cryptography library
ARG CARGO_NET_GIT_FETCH_WITH_CLI=true
# Install certbot from sources
RUN apk add --no-cache --virtual .build-deps \
gcc \
@@ -35,6 +39,7 @@ RUN apk add --no-cache --virtual .build-deps \
libffi-dev \
python3-dev \
cargo \
git \
&& python tools/pipstrap.py \
&& python tools/pip_install.py --no-cache-dir \
--editable src/acme \