浏览代码

Try fix proxy issue?

Joachim M. Giæver 3 年之前
父节点
当前提交
5cd881ab7b
共有 1 个文件被更改,包括 1 次插入6 次删除
  1. 1 6
      snap/snapcraft.yaml

+ 1 - 6
snap/snapcraft.yaml

@@ -103,6 +103,7 @@ parts:
         export GLOBAL_AGENT_HTTP_PROXY="${http_proxy}"
         export GLOBAL_AGENT_HTTPS_PROXY="${http_proxy}"
       fi
+      yarn set version berry
       yarn --version
       yarn install --immutable
       yarn run build \
@@ -147,12 +148,6 @@ parts:
         - libatomic1
     override-stage: |
       npm install --global yarn
-      if [ -n "${http_proxy-}" ]; then
-        echo "${http_proxy}}"
-        yarn config set httpProxy "${http_proxy}"
-        yarn config set httpsProxy "${http_proxy}"
-      fi
-      yarn set version berry
       snapcraftctl stage
     organize:
       '*.md' : nodejs/