[WPB-28280] Automate license header updates in treefmt. - #5481
Merged
fisx merged 4 commits intoAug 26, 2026
Conversation
- Re-add headroom to treefmt; - make old license headers static; - make new license headers reference _current_year, not 2025.
fisx
force-pushed
the
WPB-28280-automate-license-header-updates-in-treefmt
branch
from
August 26, 2026 10:28
eaea003 to
32b4a26
Compare
Contributor
Author
|
linter on CI says this: not extremely helpful, but given that |
akshaymankar
approved these changes
Aug 26, 2026
Comment on lines
+5
to
+8
| # treefmt hands us a list of file paths, headroom wants them as repeated | ||
| # '-s' arguments. Everything else (templates, variables, run-mode) comes | ||
| # from .headroom.yaml, which headroom picks up from the working directory | ||
| # (treefmt runs formatters from the root of the tree). |
Member
There was a problem hiding this comment.
Can you please create an upstream ticket for this?
Contributor
Author
There was a problem hiding this comment.
About changing headroom's CLI to work with headroom better?
I've tried, but it seems silly to me. Our work-around is fine, and who says that treefmt is right here and doesn't need to be patched to accomodate headroom?
| headroom run -a | ||
| @echo "" | ||
| @echo "you might want to run 'make formatf' now to make sure ormolu is happy" | ||
| @echo "DEPRECATED: use 'make treefmt' instead (see 'headroom' rule in .treefmt.yaml)." |
Member
There was a problem hiding this comment.
I would even just delete it
Contributor
Author
|
renaming files works as expected: |
fisx
marked this pull request as ready for review
August 26, 2026 11:03
This was referenced Aug 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
https://wearezeta.atlassian.net/browse/WPB-28280
Checklist
changelog.d