MCPcopy Create free account
hub / github.com/dataform-co/dataform / getUpdatedTarget

Method getUpdatedTarget

core/session.ts:681–688  ·  view source on GitHub ↗
(originalTarget: dataform.ITarget)

Source from the content-addressed store, hash-verified

679
680 // Fix up dependencies in case those dependencies' names have changed.
681 const getUpdatedTarget = (originalTarget: dataform.ITarget) => {
682 // It's possible that we don't have a new Target for a dependency that failed to compile,
683 // so fall back to the original Target.
684 if (!newTargetByOriginalTarget.has(targetStringifier.stringify(originalTarget))) {
685 return originalTarget;
686 }
687 return newTargetByOriginalTarget.get(targetStringifier.stringify(originalTarget));
688 };
689 actions.forEach(action => {
690 if (!(action instanceof dataform.Declaration)) {
691 // Declarations cannot have dependencies.

Callers

nothing calls this directly

Calls 2

stringifyMethod · 0.80
getMethod · 0.80

Tested by

no test coverage detected