diff --git a/pkg/rbeconfigsgen/options.go b/pkg/rbeconfigsgen/options.go index 2d9fb25c9..b46cc687e 100644 --- a/pkg/rbeconfigsgen/options.go +++ b/pkg/rbeconfigsgen/options.go @@ -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 }