@@ -420,7 +420,7 @@ async function actionDiffPreliminary({
420420 node : RenderedNode
421421 resolveAction : boolean
422422} ) : Promise < ActionDiffPreliminary > {
423- const actionA = graphA . getActionByRef ( { kind : node . kind , name : node . name } )
423+ const actionA = graphA . getActionByRef ( { kind : node . kind , name : node . name } , { includeDisabled : true } )
424424
425425 log = actionA . createLog ( log )
426426 log . debug ( { msg : "Comparison (phase 1)" } )
@@ -573,7 +573,7 @@ export async function actionDiffFinal(
573573 }
574574 }
575575
576- const actionA = graphA . getActionByRef ( { kind : diff . kind , name : diff . name } )
576+ const actionA = graphA . getActionByRef ( { kind : diff . kind , name : diff . name } , { includeDisabled : true } )
577577 // const actionB = graphB.getActionByRef({ kind: diffB.kind, name: diffB.name })
578578
579579 const status = diff . status
@@ -774,27 +774,29 @@ async function computeFiles({
774774
775775 if ( actionA ) {
776776 const sourcePath = actionA . sourcePath ( )
777- filesA = await gardenA . vcs . getFiles ( {
777+ const treeVersionWithHashes = await gardenA . vcs . getTreeVersionWithHashes ( {
778778 log,
779- path : sourcePath ,
779+ projectName : gardenA . projectName ,
780+ config : actionA . getConfig ( ) ,
780781 // FIXME: We should use the minimal roots, as when resolving the graph
781782 scanRoot : sourcePath ,
782783 } )
783- filesA = filesA . map ( ( file ) => ( {
784+ filesA = treeVersionWithHashes . files . map ( ( file ) => ( {
784785 ...file ,
785786 path : relative ( sourcePath , file . path ) ,
786787 } ) )
787788 }
788789
789790 if ( actionB ) {
790791 const sourcePath = actionB . sourcePath ( )
791- filesB = await gardenB . vcs . getFiles ( {
792+ const treeVersionWithHashes = await gardenB . vcs . getTreeVersionWithHashes ( {
792793 log,
793- path : sourcePath ,
794+ projectName : gardenB . projectName ,
795+ config : actionB . getConfig ( ) ,
794796 // FIXME: We should use the minimal roots, as when resolving the graph
795797 scanRoot : sourcePath ,
796798 } )
797- filesB = filesB . map ( ( file ) => ( {
799+ filesB = treeVersionWithHashes . files . map ( ( file ) => ( {
798800 ...file ,
799801 path : relative ( sourcePath , file . path ) ,
800802 } ) )
0 commit comments