Use S3 source evidence when planning preparation reuse
This commit is contained in:
@@ -6,6 +6,7 @@ import (
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
"gitea.maximumdirect.net/eric/narratio/internal/adapters/storage"
|
||||
"gitea.maximumdirect.net/eric/narratio/internal/artifacts"
|
||||
"gitea.maximumdirect.net/eric/narratio/internal/config"
|
||||
"gitea.maximumdirect.net/eric/narratio/internal/manifest"
|
||||
@@ -72,7 +73,7 @@ type projectedStage struct {
|
||||
Analysis *stage.AnalyzeResumeSummary
|
||||
}
|
||||
|
||||
func projectSelectedWork(ctx context.Context, cfg *config.Config, plan BoundedPlan, force bool, selectedArtifacts []string, effective artifacts.EffectiveArtifactSet, store artifacts.Store, snapshot *manifest.Manifest) (*workProjection, error) {
|
||||
func projectSelectedWork(ctx context.Context, cfg *config.Config, plan BoundedPlan, force bool, selectedArtifacts []string, effective artifacts.EffectiveArtifactSet, store artifacts.Store, objectStore storage.ObjectStore, snapshot *manifest.Manifest) (*workProjection, error) {
|
||||
model, err := cloneManifestForPlan(snapshot, cfg)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("plan: clone session state: %w", err)
|
||||
@@ -81,7 +82,7 @@ func projectSelectedWork(ctx context.Context, cfg *config.Config, plan BoundedPl
|
||||
stages := plan.Stages()
|
||||
stageEnv := &stage.Env{
|
||||
Config: cfg, SelectedArtifactKeys: append([]string(nil), selectedArtifacts...),
|
||||
EffectiveArtifacts: effective, ArtifactStore: store, Force: force,
|
||||
EffectiveArtifacts: effective, ArtifactStore: store, ObjectStore: objectStore, Force: force,
|
||||
}
|
||||
|
||||
projection := &workProjection{Model: model}
|
||||
|
||||
Reference in New Issue
Block a user