Skip to content

server: Don't do full rebuilds on mass CHMOD events #13373

Closed
@bep

Description

@bep

So, this comes from what seems to be a recently introduced bug (or feature) in my VSCode setup, but I think it makes sense to improve how we handle this in Hugo.

  • For file system changes, we normally do fine grained rebuilds, but skip CHMOD events.
  • But if number of events > 50 we assume a mass edit (e.g. change of Git branch), so we fall back to a full rebuild. We include CHMOD events in the count.

The fix to the above would be to filter out any CHMOD events before deciding what to do.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions