Skip to content

Commit

Permalink
Use different sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
tothszabi committed Jul 19, 2024
1 parent 5c43070 commit 1497717
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/models_methods.go
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ func validateGraph(pipeline *PipelineModel) error {
// The workflows are in a map object, and the order of these two in the error message was non-deterministic.
// We need to sort them, so they appear always in the same order.
items := []string{identifier, dependency}
sort.Sort(sort.StringSlice(items))
sort.Strings(items)

return fmt.Errorf("the dependency between workflow '%s' and workflow '%s' creates a cycle in the graph", items[0], items[1])
}
Expand Down

0 comments on commit 1497717

Please sign in to comment.