riverpod icon indicating copy to clipboard operation
riverpod copied to clipboard

Surface better errors in the migration tool

Open TimWhiting opened this issue 2 years ago • 4 comments

Just want to have this issue as a reminder that I should log in the migration tooling when a file fails to parse or fails to migrate, along with a link to a migration guide / changelog for the version change in case the tool errors out on a file and the user has to do a manual migration for that file. The link will be helpful even in the absence of errors because some changes do not have automatic migrations anyways.

TimWhiting avatar Aug 23 '21 04:08 TimWhiting

@rrousselGit I'd like to do this before you release the 1.0.0 of riverpod_cli, but as a prereq for that we will need a migration guide on the website.

TimWhiting avatar Aug 23 '21 04:08 TimWhiting

Why is the migration guide a requirement?

rrousselGit avatar Aug 23 '21 08:08 rrousselGit

Just need a valid link to redirect people to when errors occur with the tool and they have to do a manual migration on specific files or for unsupported migrations of the low level apis.

TimWhiting avatar Aug 23 '21 17:08 TimWhiting

You can expect the migration URL to be https://riverpod.dev/docs/migration/0.14.0_to_1.0.0

rrousselGit avatar Aug 23 '21 18:08 rrousselGit

I'll close this. I have no plan to fix the remaining bugs for the migration tool as it's been quite a while now since the breaking change happened.

rrousselGit avatar Jan 09 '23 11:01 rrousselGit