diff --git a/context.go b/context.go index 60a4363..d9529fb 100644 --- a/context.go +++ b/context.go @@ -1000,10 +1000,12 @@ func (c *Context) createVariations(origModule *moduleInfo, mutatorName string, newModule.dependencyVariant = origModule.dependencyVariant.clone() newModule.moduleProperties = newProperties - if newModule.variantName == "" { - newModule.variantName = variationName - } else { - newModule.variantName += "_" + variationName + if variationName != "" { + if newModule.variantName == "" { + newModule.variantName = variationName + } else { + newModule.variantName += "_" + variationName + } } newModules = append(newModules, newModule)