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

Make content hash consistent across machines #1095

Closed
wants to merge 1 commit into from
Closed

Make content hash consistent across machines #1095

wants to merge 1 commit into from

Conversation

weiwei-lin
Copy link

Credit to @elyalvarado.
This PR is simply a rebased #1085
Open this PR because the original PR seems to be inactive.
Here's a copy of the original description.

The metadata used for calculating the content/chunk hash by Webpack was including the absolute paths for all the definition files and additional dependencies, which caused the calculated hash to be different depending on the absolute path of the root context. This caused the hash to change between different machines even if there were no changes in the code, which in turn causes issues in certain deployment environments where the build is executed in different server, as is the case in the default Rails deployments in AWS OpsWorks.

This is similar to the issue described in #1048

This PR changes the paths added to the build metadata to be relative to the root context, which makes the content/chunk hash calculation consistent across builds in different machines.

@weiwei-lin
Copy link
Author

Close since the original PR is active again.

@weiwei-lin weiwei-lin closed this Apr 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant