Tool to automatically upgrade substrate-based Rust repos.
git clone https://github.com/tmpolaczyk/lucky-upgrade cd lucky-upgrade pip install -r requirements.txt
There are a few assumptions:
-
lucky-upgrade
folder must be in the same folder as all the other repos: it must be possible to runcd ../polkadot-sdk
from inside thelucky-update
folder -
The user must have push permission to the moondance-labs repos
Uncomment the setup_remote_all_repos
function in main()
and run:
./lucky_upgrade.py
There is no CLI yet, so just uncomment the functions you want to run in main()
and run ./lucky_upgrade.py
.
There is also a work in progress linter called lucky_linter.py
, it can detect some toml mistakes such as not using workspace = true
, but it is far from ready.