Skip to content

Conversation

@braydonk
Copy link
Collaborator

Fixes #300 (congrats on the nice round issue number)

Currently, the situation is in the rare case when the filepath package can't walk, yamlfmt will then call a function on a nil fileinfo which will panic. This PR adds handling for the error from filepath walking which will print the errors for the paths it can't read and format what it is capable of formatting.

Currently, the situation is in the rare case when the filepath package
can't walk, yamlfmt will then call a function on a nil fileinfo which
will panic. This PR adds handling for the error from filepath walking
which will print the errors for the paths it can't read and format what
it is capable of formatting.
@braydonk braydonk force-pushed the fix_filepath_walk_panic branch from 48d0521 to eafbfcd Compare December 19, 2025 23:51
@braydonk braydonk merged commit 29ac068 into google:main Dec 19, 2025
6 checks passed
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.

frequent crashes

1 participant