Skip to content

[gha] Make sure we cache maven (and sort) and make sure docs are proper EOF marked - #893

Merged
mathieucarbou merged 1 commit into
mathieucarbou:masterfrom
hazendaz:gha
Jan 21, 2025
Merged

mathieucarbou merged 1 commit into
mathieucarbou:masterfrom
hazendaz:gha

Conversation

@hazendaz

Copy link
Copy Markdown
Collaborator

Git expects all readable files have proper end of file line marker to assist with diffs.

Some info on this is here https://stackoverflow.com/questions/5813311/whats-the-significance-of-the-no-newline-at-end-of-file-log.

The largest contributor to this problem on the repo right now is the docs folder.

In order to properly fix files we really care about, we need to ensure the docs that are integrated into the overall build files adhere to this standard.

Note: This was not tested on GHA but is a command used locally by me for number of years. It may need a bit of tweaking in case expected syntax is off a bit on translation from git alias to a call on github. Not sure the best way to test this otherwise then see if it works. I've otherwise ran the command from a git alias locally and just about every file in docs is affected. Then outside of that we have a much smaller set that need to be resolved which will be done separately in a single commit. Most repos I've worked on, most contributors generally have the files right but if we are ever concerned they are not or want to ensure we don't have this issue post this point, we can simply add a separate plugin git-build-hook-maven-plugin which can do this as a pre commit action when committing the code. We would still want docs handled as the files look to be generated in very flat way (possibly from the site call) and this will ensure they are ok. Its unusual to me at least to have very fluid docs from site generated embedded to the direct main instead of using gh-pages. So this is very unique need that would normally be ignored. Expectation here is this will be ugly the first time, then stabilize afterwards.

…er EOF marked

Git expects all readable files have proper end of file line marker to assist with diffs.

Some info on this is here https://stackoverflow.com/questions/5813311/whats-the-significance-of-the-no-newline-at-end-of-file-log.

The largest contributor to this problem on the repo right now is the docs folder.
@mathieucarbou
mathieucarbou merged commit 83d6eeb into mathieucarbou:master Jan 21, 2025
@mathieucarbou

Copy link
Copy Markdown
Owner

well... let's test it ;-)

@hazendaz

Copy link
Copy Markdown
Collaborator Author

well... let's test it ;-)

First pass did exactly what was needed. Now to see if second time through works out.

@hazendaz

Copy link
Copy Markdown
Collaborator Author

ok now that we are getting second passes on the docs, all looks as expected. So all testing on this is now completed.

@hazendaz hazendaz self-assigned this Jan 29, 2025
@hazendaz hazendaz added this to the 5.0.0 - Java 11 milestone Jan 29, 2025
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