Read publication inventory without execution snapshots
This commit is contained in:
@@ -176,7 +176,6 @@ func inspectSessionState(ctx context.Context, cfg *config.Config, status, remote
|
||||
} else if current.State != nil {
|
||||
report.Remote.State = "current"
|
||||
report.Remote.RunID = current.State.RunID
|
||||
report.Remote.ManifestKey = current.State.CurrentManifestKey
|
||||
}
|
||||
locks := inspectRemoteLocks(ctx, cfg, store)
|
||||
fail("locks", locks.Err)
|
||||
@@ -265,9 +264,7 @@ func inspectPublishedOutputs(ctx context.Context, cfg *config.Config, store stor
|
||||
configuredOutputs := helperConfiguredOutputPathMap(catalog)
|
||||
extractionOutputs := helperExtractionOutputSet(catalog)
|
||||
var declarations map[string]artifacts.RemoteArtifact
|
||||
outcomes := map[string]string{}
|
||||
if current != nil {
|
||||
outcomes = committedPublishOutputOutcomes(current.Manifest)
|
||||
declarations = committedPublishedOutputs(current.Commit)
|
||||
}
|
||||
var resultErr error
|
||||
@@ -275,7 +272,7 @@ func inspectPublishedOutputs(ctx context.Context, cfg *config.Config, store stor
|
||||
source := strings.TrimSpace(rule.Source)
|
||||
destination, err := artifactpolicy.ResolvePublishedDestinationWithExtractions(source, rule.Dest, configuredOutputs, extractionOutputs)
|
||||
_, isLocked := locked[source]
|
||||
output := sessionPublishedOutput{Source: source, Destination: destination, Required: rule.Required == nil || *rule.Required, LockState: "unknown", State: "missing", Outcome: outcomes[source]}
|
||||
output := sessionPublishedOutput{Source: source, Destination: destination, Required: rule.Required == nil || *rule.Required, LockState: "unknown", State: "missing"}
|
||||
if locksKnown {
|
||||
output.LockState = "unlocked"
|
||||
if isLocked {
|
||||
|
||||
Reference in New Issue
Block a user