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

fix randomized bass.lock formatting #201

Merged
merged 4 commits into from
Jul 2, 2022
Merged

fix randomized bass.lock formatting #201

merged 4 commits into from
Jul 2, 2022

Conversation

vito
Copy link
Owner

@vito vito commented Jul 2, 2022

ref. golang/protobuf#1121

Turns out protobuf randomizes whitespace in JSON/text encoding to make sure folks aren't relying on stable encoding. Fair enough! We can just explicitly use a formatter to stabilize it.

note: I checked and this doesn't affect thunk checksumming; that uses the binary encoding, which is stable, and covered by a test.

vito added 4 commits July 2, 2022 09:57
This reverts commit 8f0705d.

the cause of this was actually that protobuf randomizes output;
explicitly using a formatter resolves the issue
@vito vito added the bugfix Fixes a regression or unintended behavior label Jul 2, 2022
@vito vito merged commit c81dd6c into main Jul 2, 2022
@vito vito deleted the fix-lock-fmt branch July 2, 2022 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Fixes a regression or unintended behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant