[ 
https://issues.apache.org/jira/browse/MBUILDCACHE-99?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17864961#comment-17864961
 ] 

ASF GitHub Bot commented on MBUILDCACHE-99:
-------------------------------------------

amirhadadi opened a new pull request, #161:
URL: https://github.com/apache/maven-build-cache-extension/pull/161

   Input files checksum is calculated by sorting all files and using their 
content (but not their path) to update a checksum. This means that if a file is 
moved or renamed in a way that doesn't change its location in the list of 
sorted files, the input files checksum will not change. This change adds the 
file's path to the checksum.
   
   Following this checklist to help us incorporate your 
   contribution quickly and easily:
   
    - [X] I hereby declare this contribution to be licenced under the [Apache 
License Version 2.0, January 2004](http://www.apache.org/licenses/LICENSE-2.0)




> Project checksum fails to identify moved files in certain cases
> ---------------------------------------------------------------
>
>                 Key: MBUILDCACHE-99
>                 URL: https://issues.apache.org/jira/browse/MBUILDCACHE-99
>             Project: Maven Build Cache Extension
>          Issue Type: Bug
>    Affects Versions: 1.2.0
>            Reporter: Amir Hadadi
>            Priority: Major
>
> Input files checksum is calculated by sorting all files and using their 
> content (but not their path) to update a checksum.
> Let's say that there are 2 files named A,B and B gets renamed to C. Since the 
> order of the files didn't change and the contents of the files didn't change, 
> the input files checksum remains the same.
> The solution is to include the normalized file path in the file checksum 
> calculation.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to