Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
coeuvre committed Oct 18, 2023
1 parent 1c20ef0 commit 8a81aa9
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 @@ -196,6 +196,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 8a81aa9

Please sign in to comment.