-
Notifications
You must be signed in to change notification settings - Fork 59
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
Different workspaces produce different hashes #180
Comments
We are also trying to accomplish similar as our CI system by default does shallow clones and we likewise want to avoid switching branches and calculating hashes for previous builds. I've found unless the hashes are generated on the exact same machine, they're always different. In our case, even different CI runner instances with otherwise identical configuration, OS, file systems, etc always produce different hashes. |
Related Different workspaces produce different hashes #180
Can you test out #182 and let me know how it works, if it works we can find a way to set the list of ignored attributes when hashing |
@tinder-maxwellelliott 100% did the trick. Awesome 🙇🏼 |
Okay Ill work on making it so the list of ignored attributes can be provided by an end user |
@erikkerber Can you do one last test with #182, I added the ability to list attributes you wish to ignore during rule target hashing |
@tinder-maxwellelliott #182 worked for me, thanks! I had to add |
Awesome, I'll close this then and merge it in. Thanks Y'all |
I was trying to use the |
Is this a rule attribute? Last I checked the proto I saw nothing like |
@tinder-maxwellelliott it's a custom rule in house. |
Let me know if "feature" or "bug"
Assume a Bazel repo in
/a
:As a background — we're caching the hash results to avoid too many Git checkouts/fetches in builds, but finding out that different workspaces result in different results. The workspaces are a boring implementation detail of our CI system which different paths/checkouts for different jobs.
The text was updated successfully, but these errors were encountered: