def drift

ezx@1.11.0.0 · src/share/say.bend:142

import ezx@1.11.0.0/src/share/say.bend as Say
import Base

142# the tagged commit's tree no longer hashes to the pin. Upgrade will not
143# invent a new hash for that: the pin is what the ledger says, and a drift
144# is the ledger and the tree disagreeing.
145def drift(+name: String, +tag: String, +rev: String, +old: String, +new: String) -> String:
146  "ez: " ++ name ++ ": the tree hash of " ++
147    drift.where(String.is_empty(tag), tag, rev) ++
148    " no longer matches the pin (the package moved, or the hash is wrong: " ++
149    old ++ " on the pin, " ++ new ++
150    " in the tree). `ez lock --upgrade` cannot fix a drifted pin. Update the dependency hash, re-add the package, or check the tag."

Uses (4)

Used by (1)