-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
Fix util/find-doc-nits' check_env_vars #28601
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Some files in @except_env_files are located in the build directory, not the source directory. Furthermore, because the files and directories in @except_dirs and @except_env_files may look different than the elements in what find() returns, realpath() must be used to ensure that file name comparison matches when it should.
This displays the list of files with line number for each envvar.
…-files' If that fails, it will fall back to finding the files with Find::file.
|
Perhaps this should be propagated to older releases as well? I haven't checked, can somebody help? |
|
Should anyone wonder, all these changes remove a number of false positives that can happen because of the presence of untracked files that are set to be ignored (through |
|
Ping? |
jogme
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good; the output is very useful! Thank you!
|
Ping? @openssl/committers |
beldmit
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
This pull request is ready to merge |
|
merged to master and 3.6, thank you! |
Some files in @except_env_files are located in the build directory, not the source directory. Furthermore, because the files and directories in @except_dirs and @except_env_files may look different than the elements in what find() returns, realpath() must be used to ensure that file name comparison matches when it should. Reviewed-by: Neil Horman <nhorman@openssl.org> Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com> (Merged from #28601)
This displays the list of files with line number for each envvar. Reviewed-by: Neil Horman <nhorman@openssl.org> Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com> (Merged from #28601)
…-files' If that fails, it will fall back to finding the files with Find::file. Reviewed-by: Neil Horman <nhorman@openssl.org> Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com> (Merged from #28601)
Some files in @except_env_files are located in the build directory, not the source directory. Furthermore, because the files and directories in @except_dirs and @except_env_files may look different than the elements in what find() returns, realpath() must be used to ensure that file name comparison matches when it should. Reviewed-by: Neil Horman <nhorman@openssl.org> Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com> (Merged from #28601) (cherry picked from commit 29fa220)
Some files in @except_env_files are located in the build directory, not the source directory. Furthermore, because the files and directories in @except_dirs and @except_env_files may look different than the elements in what find() returns, realpath() must be used to ensure that file name comparison matches when it should. Reviewed-by: Neil Horman <nhorman@openssl.org> Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com> (Merged from openssl#28601)
This displays the list of files with line number for each envvar. Reviewed-by: Neil Horman <nhorman@openssl.org> Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com> (Merged from openssl#28601)
…-files' If that fails, it will fall back to finding the files with Find::file. Reviewed-by: Neil Horman <nhorman@openssl.org> Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com> (Merged from openssl#28601)
This contains multiple fixes:
Fix util/find-doc-nits' environment variable check exceptions
Some files in @except_env_files are located in the build directory,
not the source directory.
Furthermore, because the files and directories in @except_dirs and
@except_env_files may look different than the elements in what find()
returns, realpath() must be used to ensure that file name comparison
matches when it should.
Fix util/find-doc-nits' check_env_vars to show where envvars were found
This displays the list of files with line number for each envvar.
Fix util/find-doc-nits' check_env_vars to look for files with 'git ls-files'
If that fails, it will fall back to finding the files with Find::file.