You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
pantry add silently destroys an existing same-named entry of a different kind #695
The whole [milk] section is gone. The same happens when the name is a top-level item (fridge = "2%l" replaced by a [fridge] table) and for [[fridge]] arrays. remove/update/rename_section all refuse these collisions; add does not.
Expected
add refuses the collision with an error (as remove/update do) and leaves pantry.conf unchanged.
Actual
Exit 0 and the pre-existing entry is silently destroyed.
Acceptance criteria (red → green)
Red: after the repro command, [milk] carton = "2%l" is gone from pantry.conf.
Green: the command errors, exit ≠ 0, and the file still contains the original entry.
Verification
Executed repro; two of the three shapes verified live.
Activity