ocket8888 commented on PR #6525:
URL: https://github.com/apache/trafficcontrol/pull/6525#issuecomment-1104507146

   > not having to rebuild the ATS RPM when switching Git branches is well 
worth having this edge case.
   
   Why do you have to rebuild the ATS RPM when you switch git branches? You 
should only have to rebuild if the sources in that directory change. The 
specfile you reference in the title has only changed seven times this year.
   
   I just verified that switching git branches doesn't make you rebuild that:
   ```shellsession
   $ time make cache/trafficserver.rpm
   make: 'cache/trafficserver.rpm' is up to date.
   make cache/trafficserver.rpm  0.02s user 0.04s system 141% cpu 0.046 total
   $ git checkout 1f264bf1624246616a62ffe93c6ddb7d7a095ff0
   Note: switching to '1f264bf1624246616a62ffe93c6ddb7d7a095ff0'.
   
   You are in 'detached HEAD' state. You can look around, make experimental
   changes and commit them, and you can discard any commits you make in this
   state without impacting any branches by switching back to a branch.
   
   If you want to create a new branch to retain commits you create, you may
   do so (now or later) by using -c with the switch command. Example:
   
     git switch -c <new-branch-name>
   
   Or undo this operation with:
   
     git switch -
   
   Turn off this advice by setting config variable advice.detachedHead to false
   
   HEAD is now at 1f264bf16 Fixes the cache-config integration tests. (#6755)
   $ time make cache/trafficserver.rpm
   make: 'cache/trafficserver.rpm' is up to date.
   make cache/trafficserver.rpm  0.02s user 0.04s system 137% cpu 0.044 total
   ```


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to