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

ocaml: harden against patchset checksum changing #643

Merged
merged 1 commit into from
Jun 5, 2023

Conversation

psafont
Copy link
Member

@psafont psafont commented Jun 5, 2023

github did the old switcheroo and changes the context of a patch file. This is probably because github doesn't use full commit indeces by default in these file and it needed longer hashes to differenciate between commits.
This change is needed to pass the CI, it doesn't affect the tarball that's being packaged for releases

@edwintorok
Copy link
Contributor

That md5 is the same as that sha256 on that file. What changed?

@edwintorok
Copy link
Contributor

The failure seems to be for the sha256 of a patch though, not the tarball.

@edwintorok
Copy link
Contributor

Can you add all the .patch files into this repo so that we wouldn't fail fetching them if github changes them in subtle ways?

@edwintorok
Copy link
Contributor

commit 5095d4fd3728a0b7783c24f4b45dbe663c9f4d7b
Author: David Allsopp [email protected]
Date: Wed May 31 17:36:21 2023 +0100

Use ?full_index=1 when referencing GitHub commits

Undocumented switch causes patches produced to use git-show(1)'s
`--full-index` option, which guarantees the stability of the patch files
from GitHub.

Github doesn't include full indeces in patchsets by default allowing the
contents of patches based on a commit to change.
We can't recover the old version, but we can include the patch file in the
repo so it's not affected by this behaviour.

Signed-off-by: Pau Ruiz Safont <[email protected]>
@psafont psafont changed the title ocaml: change checksum ocaml: harden against patchset checksum changing Jun 5, 2023
@psafont psafont merged commit d1337c4 into xapi-project:release/yangtze/lcm Jun 5, 2023
@psafont psafont deleted the new408 branch June 5, 2023 14:58
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.

4 participants