Closed FrankC01 closed 1 year ago
Brought back an older idea:
localnet set-sui-repo --path
... and it end up to work quite well for your use case.
A genesis "from scratch" is done for every set-sui-repo, so the addresses for these change. It is the safest thing to do.
The genesis for the default repos are "from config", so the deterministic address trick still work, with a new set of config ready for when 0.28 will "land".
Example of use (multiple co-existing repos)
===========================================
localnet set-sui-repo --path ~/my_repos/sui-0.28.0
localnet start <-- Will build, but not download.
localnet stop <-- Optional. set-sui-repo will stop localnet if you don't.
localnet set-sui-repo --path ~/my_repos/sui-0_27_1
localnet start <-- Build, not download. Properly detect needs to regen on repo change.
localnet update <-- Does not "update" when not on default, just do the build+regen part.
localnet set-sui-repo <-- No parameter. Back to default
By observing the symlink with "ls -al ~/sui-base/workdirs/localnet" it should be self-explanatory how it works.
Discussed in https://github.com/sui-base/sui-base/discussions/8