Publish products without execution ledgers
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user