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

[heft] Fix portability of configHash for incremental file copy #4955

Merged
merged 1 commit into from
Oct 1, 2024

Conversation

dmichon-msft
Copy link
Contributor

Summary

Fixes an issue where the configHash for incremental file copy state was calculated by hashing absolute paths and was therefore not portable.

Details

Fixes the hash to be calculated using relative paths.
Moves hash computation to avoid duplicate work on watch mode rebuilds.

How it was tested

Existing build tests, plus running heft-webpack5-everything-test under debugger and validating the inputs to the hash were relative, since these come from heft-typescript-plugin and are therefore a more interesting case than the CopyFilesPlugin.

Impacted documentation

None

@dmichon-msft dmichon-msft merged commit dc02c17 into microsoft:main Oct 1, 2024
4 checks passed
@dmichon-msft dmichon-msft deleted the copy-files-hash branch October 1, 2024 20:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Closed
Development

Successfully merging this pull request may close these issues.

2 participants