Skip to content

Commit

Permalink
#70: deny sync if dual version found in process. Not expected behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
iignatevich authored and davidferlay committed Jan 6, 2025
1 parent 7f4e515 commit ee07b46
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions actionSync.go
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,11 @@ func (s *SyncAction) findResourcesChangeTime(namespaceResources *sync.OrderedMap
return err
}

split := strings.Split(version, "-")
if len(split) > 1 {
return fmt.Errorf("dual version %s is detected in build for %s, seems like resource was propagated before. Please re-compose and run sync again", version, k)
}

currentVersions[k] = version
}

Expand Down

0 comments on commit ee07b46

Please sign in to comment.