From 54767b5a65e1f8fc3b834a8f7ff7d0d5e645b69b Mon Sep 17 00:00:00 2001 From: "J. Ryan Stinnett" Date: Fri, 27 Sep 2019 12:48:28 +0100 Subject: [PATCH] Clean Yarn cache during Electron builds --- scripts/electron-package.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/electron-package.sh b/scripts/electron-package.sh index 0465081a..63c2fd72 100755 --- a/scripts/electron-package.sh +++ b/scripts/electron-package.sh @@ -85,6 +85,11 @@ if [ -n "$conffile" ]; then pushd "$builddir" fi +# We use Git branch / commit dependencies for some packages, and Yarn seems +# to have a hard time getting that right. See also +# https://github.com/yarnpkg/yarn/issues/4734. As a workaround, we clean the +# global cache here to ensure we get the right thing. +yarn cache clean yarn install yarn build:electron