Skip to content

fix(io): spit truncates on write and honours :append - #32

Merged
skydread1 merged 1 commit into
maint-1.11.xfrom
fix/spit-truncate-append
Sep 1, 2026
Merged

fix(io): spit truncates on write and honours :append#32
skydread1 merged 1 commit into
maint-1.11.xfrom
fix/spit-truncate-append

Conversation

@skydread1

Copy link
Copy Markdown
Member

Closes #30

  • file-mode opens a plain write with FileMode/Create and :append with FileMode/Append; it used FileMode/OpenOrCreate for every write, so old content survived past the new tail and :append was silently dropped.

file-mode returned FileMode/OpenOrCreate for every write, so an existing
file was opened at position 0 without truncating, and :append was ignored.
A plain write now opens with FileMode/Create and :append with
FileMode/Append, matching JVM Clojure.
@skydread1 skydread1 self-assigned this Sep 1, 2026
@skydread1
skydread1 merged commit a320285 into maint-1.11.x Sep 1, 2026
3 checks passed
@skydread1
skydread1 deleted the fix/spit-truncate-append branch September 1, 2026 01:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

spit does not truncate an existing file, and :append is ignored

1 participant