Browse Source

Try fix proxy issue?

Joachim M. Giæver 3 years ago
parent
commit
609374e736
1 changed files with 4 additions and 4 deletions
  1. 4 4
      snap/snapcraft.yaml

+ 4 - 4
snap/snapcraft.yaml

@@ -99,10 +99,10 @@ parts:
     override-build: |
       set -x
       #sed -i 's/"zwave-js".*$/"zwave-js"\: "8.3.2-0-pr-3262-f5cdbca"/g' ${SNAPCRAFT_PART_BUILD}/package.json
-      # if [ -n "${http_proxy-}" ]; then
-      #   export GLOBAL_AGENT_HTTP_PROXY="${http_proxy}"
-      #   export GLOBAL_AGENT_HTTPS_PROXY="${http_proxy}"
-      # fi
+      if [ -n "${http_proxy-}" ]; then
+        export GLOBAL_AGENT_HTTP_PROXY="${http_proxy}"
+        export GLOBAL_AGENT_HTTPS_PROXY="${http_proxy}"
+      fi
       yarn --version
       yarn install --immutable
       yarn run build \