Skip to content

v0.25.3

Latest

Choose a tag to compare

@CreatorHead CreatorHead released this 29 Apr 10:22
b3e6599

v0.25.3

Bug Fixes

  • LICENSE no longer updated on every run (#224)
    anyFileUpdated was unconditionally set to true in non-plan mode due
    to a buggy condition, causing the LICENSE file's copyright year to
    be bumped on every successful run — even when all source file headers were
    already correct. This triggered spurious pre-commit hook failures with
    "files were modified by this hook" when nothing should have changed.
    addlicense.Run now correctly reports whether it actually wrote any files,
    and the LICENSE update is gated on that signal.

  • Ignored directories are now skipped in a single step (#225)
    Patterns in header_ignore (e.g. .venv/**, vendor/**) were previously
    only checked against files — the walk still descended into every directory
    unconditionally, visiting each file before discarding it. For directories
    with thousands of files this caused significant slowdowns. The walk now
    checks each directory against ignore patterns and returns filepath.SkipDir
    immediately, pruning the entire subtree regardless of how many files are
    inside.

Full Changelog

v0.25.2...v0.25.3