Skip to content
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

[MBUILDCACHE-99] Project checksum fails to identify moved files in certain cases #161

Merged
merged 2 commits into from
Jul 15, 2024

Conversation

amirhadadi
Copy link
Contributor

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:

…rtain cases.

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 / 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.
@olamy olamy added the bug Something isn't working label Jul 15, 2024
@olamy
Copy link
Member

olamy commented Jul 15, 2024

Maybe you could add an IT test? Thanks

@olamy olamy merged commit 6680780 into apache:master Jul 15, 2024
40 checks passed
reda-alaoui pushed a commit to Cosium/maven-build-cache-extension that referenced this pull request Aug 31, 2024
…rtain cases (apache#161)

* [MBUILDCACHE-99] Project checksum fails to identify moved files in certain cases.

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 / 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.

(cherry picked from commit 6680780)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants