Use native path readers for discovery
This commit is contained in:
@@ -134,7 +134,11 @@ func runConfigExplanation[I, S any](invocation commandkit.Invocation, plan *conf
|
||||
if plan.under != nil {
|
||||
prefix = pointerTokens(plan.under.String())
|
||||
}
|
||||
for _, path := range acquired.Value.Metadata.HistoricalPaths() {
|
||||
paths := acquired.Value.Paths
|
||||
if paths == nil {
|
||||
paths = acquired.Value.Metadata
|
||||
}
|
||||
for _, path := range paths.HistoricalPaths() {
|
||||
pointer := path.String()
|
||||
if plan.under != nil && !pathWithin(pointer, prefix) {
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user