Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
coeuvre committed Aug 17, 2022
1 parent 056993a commit 7a3da83
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 7a3da83

Please sign in to comment.