Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
coeuvre committed Dec 7, 2021
1 parent bbb8b31 commit ae4effc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/rbeconfigsgen/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,10 @@ func (o *Options) ApplyDefaults(os string) error {
return fmt.Errorf("got unknown OS %q, want one of %s", os, strings.Join(validOS, ", "))
}

if o.PlatformParams == nil {
o.PlatformParams = new(PlatformToolchainsTemplateParams)
}

if len(o.PlatformParams.ExecConstraints) == 0 {
o.PlatformParams.ExecConstraints = dopts.PlatformParams.ExecConstraints
}
Expand Down

0 comments on commit ae4effc

Please sign in to comment.