-
|
I have a Cache ability defined in this project that now lives in a separate library. Is there a recommended way of replacing the former with the library? The handler's type signature has changed, but the rest remains the same. Thanks! NB: I read the docs here but couldn't find anything about it: https://www.unison-lang.org/docs/tooling/project-workflows/ |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Hi @gvolpe, I've cloned your project and library locally and this is a bit of an unconventional workflow (you'd be one of the first to try it 🙏), but should get you most of the way there.
Then Issue the The upgrade will create a temporary branch for you to resolve the difference between the old version of your cache to the new version. There's no magic here, you'll have to resolve the remaining errors, but once you get the project typechecking, run |
Beta Was this translation helpful? Give feedback.
Hi @gvolpe, I've cloned your project and library locally and this is a bit of an unconventional workflow (you'd be one of the first to try it 🙏), but should get you most of the way there.
lib.installyour cache library into yourforexproject:Then
moveyour Cache type into the lib namespace with this structure:Issue the
upgradecommand and then upgrade to the oldCache to your new version.The upgrade will create a temporary branch for you to resolve the difference between the old version of your cache to the new version. There's no m…