Repository navigation
[gha] Make sure we cache maven (and sort) and make sure docs are proper EOF marked - #893
Merged
Merged
Conversation
…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
approved these changes
Jan 21, 2025
Owner
|
well... let's test it ;-) |
Collaborator
Author
First pass did exactly what was needed. Now to see if second time through works out. |
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. |
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.
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.