bake: set attribute even if diagnosed as duplicated

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax
2023-10-20 19:57:52 +02:00
parent 21e4eb89b2
commit d0d8bfbca4
3 changed files with 31 additions and 5 deletions

View File

@ -123,9 +123,7 @@ func (mb mergedBodies) JustAttributes() (hcl.Attributes, hcl.Diagnostics) {
),
Subject: &attr.NameRange,
})
continue
}
attrs[name] = attr
}
}
@ -196,7 +194,6 @@ func (mb mergedBodies) mergedContent(schema *hcl.BodySchema, partial bool) (*hcl
),
Subject: &attr.NameRange,
})
continue
}
content.Attributes[name] = attr
}