Replies: 2 comments 2 replies
-
The extra-data usually (always?) has a sha256 hash associated with the download. Where there's only one source being updated, would using this hash instead of the commit hash work? Where there are multiple sources to update, you could stick the hashes together in a deterministic order and make a new hash from them. But I also don't know how valuable combining updates is on average - you can be inviestigating an update to one package, and then a new PR turns up with that same update again plus a separate package. On the other hand, maybe there are cases where you have a group of dependencies that are released together, and then I can see it might be useful. |
Beta Was this translation helpful? Give feedback.
-
My original goal in using deterministic commit hashes was to avoid having to save any state from the checker, but still not open duplicate PRs. (In particular I wanted it to be possible to decline an update and not have the PR get reopened.) I learned today that GitHub Actions can read and store persistent variables on the repo: so you could imagine using this as a way to save some state rather than needing deterministic branch names. |
Beta Was this translation helpful? Give feedback.
-
Currently we rely on git commit hash to identify the changes we make. Problem with it is that it changes when the updates we've got didn't change - e.g. when there were commits to the default branch after we've submitted a PR.
How can we produce a deterministic branch name (i.e. an update identifier) without relying on git?
Beta Was this translation helpful? Give feedback.
All reactions