Skip to content

Only report updated files when some were updated - #333

Merged
virtuald merged 2 commits into
robotpy:mainfrom
AustinSchuh:quiet-update-yaml
Sep 18, 2026
Merged

virtuald merged 2 commits into
robotpy:mainfrom
AustinSchuh:quiet-update-yaml

Conversation

@AustinSchuh

Copy link
Copy Markdown
Contributor

update-yaml --write prints its count unconditionally, so a run that changed nothing still prints "0 files were updated". Build systems that show a tool's output print that line for every target on every build, which buries the runs that did change something.

update-yaml --write prints its count unconditionally, so a run that changed
nothing still prints "0 files were updated".  Build systems that show a tool's
output print that line for every target on every build, which buries the runs
that did change something.

Say nothing when the count is zero, which matches the dry run path below it:
that already distinguishes "All files up to date" from a list of pending
changes.

Signed-off-by: Austin Schuh <austin.linux@gmail.com>
@virtuald

Copy link
Copy Markdown
Member

update-yaml was originally intended to be ran by humans, so showing the action is useful. Stick this behind a -q flag?

Signed-off-by: Austin Schuh <austin.linux@gmail.com>
@AustinSchuh

Copy link
Copy Markdown
Contributor Author

That's an easy one, done!

@virtuald
virtuald merged commit 02ca9da into robotpy:main Sep 18, 2026
27 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.

2 participants