Version hash utils#4758
Open
josephjclark wants to merge 5 commits into
Open
Conversation
Collaborator
Author
|
@midigofrank a small PR here which I'd like to merge. Does this exist already or am I duplicating work here? Can you think of any improvements |
Collaborator
|
@josephjclark this looks great. It just feels weird having it called |
Replace the generate_hash/2 `hash: false` option with a dedicated canonical_form/1 function that returns the pre-hash joined string. A function named generate_hash that is asked not to hash read as contradictory; the two concerns are now separate public functions. Update the gen_workflow_hash task to route --no-hash through canonical_form/1, and make its repo bootstrap tolerant of an already-running repo so the task can be tested. Add task coverage.
Security Review ✅
|
midigofrank
approved these changes
Jun 30, 2026
Collaborator
|
@josephjclark I've added a new function which generates the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds a mix task to generate a version hash for a workflow given a UUID
Useful for debugging against CLI hashes.
AI Usage
Please disclose whether you've used AI anywhere in this PR (it's cool, we just
want to know!):
You can read more details in our
Responsible AI Policy