-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Closed
Labels
needs triageIssue needs to be triagedIssue needs to be triaged
Description
Astro Info
Astro v5.9.3
Node v22.14.0
System macOS (arm64)
Package Manager npm
Output static
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
If you use the same id across multiple entries in a content collection, that id will resolve to the latest entry in source order
What's the expected result?
An error / otherwise louder indication of a mistake or at least documentation of this behavior of the content layer. I'm totally aware this is more my opinion than a bug proper, but I think it's fair to treat duplicate ids as a mistake, announcing as such, instead of relying on the user to understand how the underlying key-value store will handle them (happily use the id to set a record, overriding each time said is used, since the kv has no concept of uniqueness constraints).
Link to Minimal Reproducible Example
Participation
- I am willing to submit a pull request for this issue.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
needs triageIssue needs to be triagedIssue needs to be triaged