Resolve linked prompts in their host context

This commit is contained in:
2026-11-10 20:17:54 +00:00
parent af0f9ac960
commit a8eb5aea4d
4 changed files with 53 additions and 14 deletions

View File

@@ -12,7 +12,7 @@ import (
"gopkg.in/yaml.v3"
)
func capturedSourcePaths(engine *pk.Engine, hostRoot string) ([]string, error) {
func capturedSourcePaths(engine *pk.Engine) ([]string, error) {
inspection, err := engine.InspectConfiguration()
if err != nil {
return nil, fmt.Errorf("inspect configuration: %w", err)
@@ -25,9 +25,6 @@ func capturedSourcePaths(engine *pk.Engine, hostRoot string) ([]string, error) {
if source.Kind == ck.SourceKindFile {
return source.Path
}
if hostRoot != "" && source.Kind == ck.SourceKindFilesystem && strings.HasPrefix(source.Label, operatorFilesystem+"/") {
return filepath.Join(hostRoot, filepath.FromSlash(source.Path))
}
return ""
}
for _, source := range sources {