From f8c45a4a70ae6699d6d48a414554d3e73cbab09f Mon Sep 17 00:00:00 2001
From: Michal Lulco <lulco@efabrica.sk>
Date: Tue, 4 May 2021 21:41:11 +0200
Subject: [PATCH] Added upgrade sets to rector-prefixed (#6320)

---
 .github/workflows/build_scoped_rector.yaml | 2 +-
 build/build-rector-scoped.sh               | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/build_scoped_rector.yaml b/.github/workflows/build_scoped_rector.yaml
index abc0508913a..5d86993bc35 100644
--- a/.github/workflows/build_scoped_rector.yaml
+++ b/.github/workflows/build_scoped_rector.yaml
@@ -68,7 +68,7 @@ jobs:
                     token: ${{ secrets.ACCESS_TOKEN }}
 
             # remove remote files, to avoid piling up dead code in remote repository
-            -   run: rm -rf remote-repository/config remote-repository/src remote-repository/rules remote-repository/packages remote-repository/vendor
+            -   run: rm -rf remote-repository/config remote-repository/src remote-repository/rules remote-repository/packages remote-repository/upgrade remote-repository/vendor
 
             -   run: cp -a rector-prefixed-downgraded/. remote-repository
 
diff --git a/build/build-rector-scoped.sh b/build/build-rector-scoped.sh
index 0c3999cea72..0f2ff15e4d7 100644
--- a/build/build-rector-scoped.sh
+++ b/build/build-rector-scoped.sh
@@ -37,7 +37,7 @@ note "Running scoper to $RESULT_DIRECTORY"
 wget https://github.com/humbug/php-scoper/releases/download/0.14.0/php-scoper.phar -N --no-verbose
 
 # Work around possible PHP memory limits
-php -d memory_limit=-1 php-scoper.phar add-prefix preload.php bin config src packages rules vendor composer.json --output-dir "../$RESULT_DIRECTORY" --config scoper.php --force --ansi --working-dir "$BUILD_DIRECTORY"
+php -d memory_limit=-1 php-scoper.phar add-prefix preload.php bin config src packages rules upgrade vendor composer.json --output-dir "../$RESULT_DIRECTORY" --config scoper.php --force --ansi --working-dir "$BUILD_DIRECTORY"
 
 
 # note "Dumping Composer Autoload"