Skip to content

Fix stale page content when several files in the same dir change in one batch - #15331

Open
bep wants to merge 1 commit into
gohugoio:masterfrom
bep:fix/issue-15330
Open

Fix stale page content when several files in the same dir change in one batch#15331
bep wants to merge 1 commit into
gohugoio:masterfrom
bep:fix/issue-15330

Conversation

@bep

@bep bep commented Sep 11, 2026

Copy link
Copy Markdown
Member

The pages collector deduped partial rebuild walks on the parent directory,
so only the first changed file in a directory was recollected. The others
kept their old parse positions while their source bytes were re-read,
yielding truncated content or slice bounds panics.

Fixes #15330

Co-Authored-By: Claude Fable 5.1 noreply@anthropic.com

…ne batch

The pages collector deduped partial rebuild walks on the parent directory,
so only the first changed file in a directory was recollected. The others
kept their old parse positions while their source bytes were re-read,
yielding truncated content or slice bounds panics.

Fixes gohugoio#15330

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
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.

hugo server: page cut at its previous length when another content file changes in the same batch

1 participant