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

Require sha1collisiondetection 0.2.7 #179

Merged
merged 1 commit into from
Oct 26, 2023
Merged

Require sha1collisiondetection 0.2.7 #179

merged 1 commit into from
Oct 26, 2023

Conversation

robin-nitrokey
Copy link
Member

This fixes an misaligned pointer dereference with newer Rust versions. Upstream issue:
https://gitlab.com/sequoia-pgp/sha1collisiondetection/-/issues/7

This fixes an misaligned pointer dereference with newer Rust versions.
Upstream issue:
    https://gitlab.com/sequoia-pgp/sha1collisiondetection/-/issues/7
Copy link
Collaborator

@sosthene-nitrokey sosthene-nitrokey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure I like that. It's typically the type of thing that would lead to duplicate dependencies for no reason when sequoia-openpgp start using 0.3.0.

I would probably prefer to just commit the Cargo.lock file, it used to not be recommended for libraries, but this has since changed: https://blog.rust-lang.org/2023/08/29/committing-lockfiles.html

I think that would force a dependency update. It might cause some pain when pulling though.

Comment on lines +64 to +66
# sequoia-openpgp depends on sha1collisiondetection >= 0.2.3, but only 0.2.7 works with newer Rust versions.
# This can be removed once sequoia-openpgp is updated to a version > 1.16.1.
sha1collisiondetection = "0.2.7"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In that case why not bump the sequoia-openpgp version? It's already in the Cargo.toml at least.

@robin-nitrokey
Copy link
Member Author

It’s only a dev dependency, so a duplicate would not be a big issue. I also thought about adding a lockfile, but testing against the latest versions in the CI is more useful for me. I did not update sequioa-openpgp because it is not released yet. If you want to use Git dependency, that’s also fine for me.

@sosthene-nitrokey
Copy link
Collaborator

Oh right it's > 1.16.1 not >=, ok then let's go for that

@robin-nitrokey robin-nitrokey merged commit 5634604 into main Oct 26, 2023
@robin-nitrokey robin-nitrokey deleted the sha1c branch October 26, 2023 13:57
@sosthene-nitrokey
Copy link
Collaborator

sequoia-openpg version 1.17 was released today

What a timing.

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.

2 participants