This commit is contained in:
Shreyas Goenka 2024-09-26 17:55:09 +02:00
parent 3203858032
commit 28917ebdab
No known key found for this signature in database
GPG Key ID: 92A07DF49CCB0622
1 changed files with 1 additions and 1 deletions

View File

@ -95,7 +95,7 @@ func validateSingleResourceDefined(configRoot dyn.Value, ext, typ string) diag.D
for _, r := range resources {
lines = append(lines, fmt.Sprintf(" - %s (%s)\n", r.key, r.typ))
}
// Sort the line s to print to make the output deterministic.
// Sort the lines to print to make the output deterministic.
sort.Strings(lines)
// Compact the lines before writing them to the message to remove any duplicate lines.
// This is needed because we do not dedup earlier when gathering the resources