Skip to content

Commit

Permalink
Skip blank sources (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
adjackura authored Jun 29, 2017
1 parent c34bd2b commit 15b2572
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions daisy/workflow/step_includeworkflow.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ func (i *IncludeWorkflow) populate(ctx context.Context, s *Step) error {

// Copy Sources up to parent resolving relative paths as we go.
for k, v := range i.w.Sources {
if v == "" {
continue
}
if _, ok := s.w.Sources[k]; ok {
return fmt.Errorf("source %q already exists in workflow", k)
}
Expand Down

0 comments on commit 15b2572

Please sign in to comment.