diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 623be060ce..4ad8ef58a3 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -89,6 +89,8 @@ parts: export GOROOT=${SNAPCRAFT_STAGE} export PATH="${GOROOT}/bin:${PATH}" + http_proxy=${http_proxy:-""} + https_proxy=${https_proxy:-""} if [ -n "$http_proxy" ]; then echo "Setting proxy $http_proxy" sudo -E systemctl set-environment http_proxy=$http_proxy || true