You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by GitBox <gi...@apache.org> on 2022/06/30 19:02:08 UTC

[GitHub] [trafficserver] bneradt commented on issue #8934: Initial `clang-format` target invocation causes many files to be rebuilt

bneradt commented on issue #8934:
URL: https://github.com/apache/trafficserver/issues/8934#issuecomment-1171571612

   @bryancall thought of using `-mmin` from find to detect what files are changing:
   
   ```
   # Clone, autoreconf, make.
   # Wait more than 5 minutes.
   
   # Now, find all the files modified in the last 5 minutes in the repo:
   find . -mmin -5
   # Should show nothing.
   
   # Now run the clang-format target, followed by the above find command:
   make -j5 clang-format && echo -------------------- && find . -mmin -5
   # ...
   ./plugins/certifier/certifier.cc
   make[1]: Leaving directory '/home/bneradt/src/ts_asf_master_fix_clang_format_make_target'
   --------------------
   ./.git
   ./.git/fmt
   ./.git/fmt/20200514
   ./.git/fmt/20200514/clang-format-20200514.tar.bz2
   ./.git/fmt/20200514/sha1
   ./include
   ./include/ink_autoconf.h.in
   ./include/ink_autoconf.h
   ```
   
   The `.git/fmt` directory changes are simply the changes to install clang-format. That's not interesting. But the fact that clang-format is modifying `ink_autoconf.h.in` and `ink_autoconf.h` is interesting. I'm not sure why that file is being modified despite making no changes.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@trafficserver.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org