Publish products without execution ledgers

This commit is contained in:
2026-12-02 15:50:59 +00:00
parent ebdf8b522f
commit 4f50a57a38
21 changed files with 115 additions and 359 deletions

View File

@@ -66,10 +66,9 @@ func (m RemoteCommitManifest) Validate() error {
if err := ValidateRunIdentity(m.RunID); err != nil {
return fmt.Errorf("remote commit run identity: %w", err)
}
if len(m.Artifacts) == 0 {
if m.Artifacts == nil {
return fmt.Errorf("remote commit artifacts are required")
}
if err := ValidateRemoteArtifactMapping(m.Artifacts); err != nil {
return err
}
@@ -84,9 +83,6 @@ func (m RemoteCommitManifest) Validate() error {
// ValidateRemoteArtifactMapping verifies that source and destination identities
// form one unambiguous immutable-object mapping.
func ValidateRemoteArtifactMapping(artifacts []RemoteArtifact) error {
if len(artifacts) == 0 {
return fmt.Errorf("remote commit artifacts are required")
}
destinations := make(map[string]struct{}, len(artifacts))
sources := make(map[string]struct{}, len(artifacts))
for index, artifact := range artifacts {