From a6858de842db471d1cecca9d1be80c49e5a92015 Mon Sep 17 00:00:00 2001 From: Volodymyr Kolesnykov Date: Mon, 4 Nov 2024 22:32:19 +0200 Subject: [PATCH] fix(vip-go-mu-plugins): use `.devenvignore` to reduce size --- features/src/vip-go-mu-plugins/devcontainer-feature.json | 2 +- features/src/vip-go-mu-plugins/update-mu-plugins | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/features/src/vip-go-mu-plugins/devcontainer-feature.json b/features/src/vip-go-mu-plugins/devcontainer-feature.json index de3f8ef4..49b75c18 100644 --- a/features/src/vip-go-mu-plugins/devcontainer-feature.json +++ b/features/src/vip-go-mu-plugins/devcontainer-feature.json @@ -1,7 +1,7 @@ { "id": "vip-go-mu-plugins", "name": "VIP Go MU Plugins", - "version": "2.2.0", + "version": "2.2.1", "description": "Installs VIP Go MU Plugins into the Dev Environment", "documentationURL": "https://github.com/Automattic/vip-codespaces/tree/trunk/features/src/vip-go-mu-plugins", "options": { diff --git a/features/src/vip-go-mu-plugins/update-mu-plugins b/features/src/vip-go-mu-plugins/update-mu-plugins index 74af4fcd..10c398e2 100755 --- a/features/src/vip-go-mu-plugins/update-mu-plugins +++ b/features/src/vip-go-mu-plugins/update-mu-plugins @@ -32,10 +32,10 @@ git clone --depth=1 --recurse-submodules --shallow-submodules https://github.com git clone --depth=1 https://github.com/Automattic/vip-go-mu-plugins-ext.git "${TEMP_DIR}/mu-plugins-ext" --single-branch if [ "${DEVELOPMENT_MODE}" != 'true' ]; then - rsync -a --delete "${TEMP_DIR}/mu-plugins/" "${TEMP_DIR}/mu-plugins-ext/" /wp/wp-content/mu-plugins --exclude-from="${TEMP_DIR}/mu-plugins/.dockerignore" --exclude-from="${TEMP_DIR}/mu-plugins-ext/.dockerignore" --exclude-from=/etc/vip-go-mu-plugins/.rsyncignore + rsync -a --delete "${TEMP_DIR}/mu-plugins/" "${TEMP_DIR}/mu-plugins-ext/" /wp/wp-content/mu-plugins --exclude-from="${TEMP_DIR}/mu-plugins/.dockerignore" --exclude-from="${TEMP_DIR}/mu-plugins-ext/.dockerignore" --exclude-from="${TEMP_DIR}/mu-plugins-ext/.devenvignore" --exclude-from=/etc/vip-go-mu-plugins/.rsyncignore find /wp/wp-content/mu-plugins \( -name .svn -o -name .github -o -name ".git*" \) -type d -exec rm -rfv {} \; 2> /dev/null else - rsync -a --delete "${TEMP_DIR}/mu-plugins/" "${TEMP_DIR}/mu-plugins-ext/" /wp/wp-content/mu-plugins --exclude-from=/etc/vip-go-mu-plugins/.rsyncignore + rsync -a --delete "${TEMP_DIR}/mu-plugins/" "${TEMP_DIR}/mu-plugins-ext/" /wp/wp-content/mu-plugins --exclude-from=/etc/vip-go-mu-plugins/.rsyncignore --exclude-from="${TEMP_DIR}/mu-plugins-ext/.devenvignore" fi if [ "${MY_UID}" -eq 0 ]; then