Route producer diagnostics to run directories
This commit is contained in:
@@ -66,12 +66,8 @@ func (polishStage) Run(ctx context.Context, env *Env, m *manifest.Manifest) (*St
|
||||
if !runLayout.Enabled {
|
||||
processedPath = filepath.Join(paths.Root, "scratch", "polish", "polished.json")
|
||||
}
|
||||
logs := paths.LogsDir
|
||||
debug := filepath.Join(paths.Root, "debug", "polish")
|
||||
if runLayout.Enabled {
|
||||
logs = runLayout.LogsDir
|
||||
debug = filepath.Join(runLayout.Root, "debug")
|
||||
}
|
||||
logs := runLayout.LogsDir
|
||||
debug := runLayout.DebugDir
|
||||
req, evidence, err := BuildPolishRequest(paths, m, mergedPath, processedPath, logs, debug)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("polish: %w", err)
|
||||
|
||||
Reference in New Issue
Block a user