def moved.of
import ezx@1.11.0.0/src/add/relock.bend as Relockimport Base
148# what is added after the lock's reason when the lock refuses: that nothing
149# was written, and, when the add moves a dependency's hash, where the old one
150# may still be imported from
151def moved.of(moved: Bool, +name: String, +old: String, +new: String) -> String:
152 match moved:
153 case True{}:
154 "\nez: ez add moves " ++ name ++ " from " ++ old ++ " to " ++ new ++
155 "; a .bend file that imports " ++ old ++ " has to name " ++ new ++
156 " first, or `ez lock --upgrade --package " ++ name ++ "` moves it"
157 case False{}:
158 ""