rector icon indicating copy to clipboard operation
rector copied to clipboard

[DX] Add "setup-downgrade" to init easy downgrade builds, similar to "setup-ci"

Open TomasVotruba opened this issue 2 years ago • 2 comments

Rector is the only tool that can handle downgraded. Yet setting up the downgrade process is quite challenging when it comes to:

  • path defintion
  • scoper setup
  • github action content
  • /build directory logic including downgraded composer.json
  • custom change in main composer.json, e.g. platform checks false etc.

Instead making this workflow available only to few who struggle through, there should be a helper command than handles this for users and make downgrading piede of cake :muscle:

Note: make use of questiosn and link similar to composer require of a private package in composer. Ask for the token, and place it in the code for user themselves.

TomasVotruba avatar Aug 03 '23 10:08 TomasVotruba

Hi @samsonasik , could you add this command? Should be similar to setup-ci, just with different contents.

It should dump all these files:

  • https://github.com/TomasVotruba/lines/tree/main/build
  • https://github.com/TomasVotruba/lines/blob/main/.github/workflows/downgraded_release.yaml
  • https://github.com/TomasVotruba/lines/blob/main/scoper.php
  • https://github.com/TomasVotruba/lines/blob/main/prefix-code.sh

TomasVotruba avatar Jan 30 '24 16:01 TomasVotruba

I will try

samsonasik avatar Jan 30 '24 20:01 samsonasik

This issue is being stale and I realize there is no much need for it. The downgrade script can evolve as well, and it's safer to copy-paste it from most recent downgrade build, rather to create a dummy template that will get obsolete soon and will spread old outdated code :)

Closing as not needed

TomasVotruba avatar Jul 02 '24 15:07 TomasVotruba