Move attempt views to workspace path ownership
This commit is contained in:
@@ -8,7 +8,6 @@ import (
|
||||
|
||||
"gitea.maximumdirect.net/eric/narratio/internal/artifacts"
|
||||
"gitea.maximumdirect.net/eric/narratio/internal/config"
|
||||
"gitea.maximumdirect.net/eric/narratio/internal/fileops"
|
||||
"gitea.maximumdirect.net/eric/narratio/internal/manifest"
|
||||
"go.maximumdirect.net/commandkit"
|
||||
)
|
||||
@@ -131,7 +130,7 @@ func restoreSessionState(ctx context.Context, cfg *config.Config, opts RestorePl
|
||||
return diagnostic, fmt.Errorf("restore: generate diagnostic run id: %w", err)
|
||||
}
|
||||
sessionPaths := artifactStore.SessionPathsFor(cfg.Session.Campaign, cfg.Session.SessionID)
|
||||
if _, err := fileops.BeginAttemptViews(sessionPaths.Root, restoreRunID, "restore"); err != nil {
|
||||
if _, err := artifacts.BeginAttemptViews(sessionPaths.Root, restoreRunID, "restore"); err != nil {
|
||||
return diagnostic, fmt.Errorf("restore: prepare diagnostic views: %w", err)
|
||||
}
|
||||
report.reportPathRel = filepath.ToSlash(filepath.Join("runs", restoreRunID, "restore", "logs", "restore.json"))
|
||||
|
||||
Reference in New Issue
Block a user