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

All 0.7.x versions have been yanked? #174

Closed
keehun opened this issue Oct 23, 2023 · 14 comments
Closed

All 0.7.x versions have been yanked? #174

keehun opened this issue Oct 23, 2023 · 14 comments

Comments

@keehun
Copy link

keehun commented Oct 23, 2023

Hi @tkaitchuck,

Thank you for this amazing crate. I (and I am sure many others) really appreciate all the work you (and other contributors) have put into this.

This afternoon, it looks like all 0.7.x versions and <=0.8.3 versions (and maybe more) have been yanked? Was this on purpose? Looking at some of the other issues & recent merges, was only 0.8.4 meant to be yanked?

cbindgen has ahash 0.7.6 as a sub-dependency (through indexmap 1.9.3), so I wonder if many people will notice the yanked crate versions very soon. I've reported this to cbindgen here and now I'm looking to see if I can maybe get indexmap updated in cbindgen to help this transition if it was intended.

@Ten0
Copy link

Ten0 commented Oct 23, 2023

I was about to open this issue.

Yanking older versions without making fixed semver-compatible versions available broke a bunch of other crates, preventing cargo update, CI runs...
Considering how ahash is clearly described as "not a cryptographically secure hash", maybe it's not so critical to immediately prevent people using this from building, and maybe posting these to https://rustsec.org/ rather than yanking would be the best way to handle the security vulnerabilities.
Alternately, releasing a fixed 0.x.n semver-compatible versions for each yanked 0.x.y would also fix this issue.

@keehun
Copy link
Author

keehun commented Oct 23, 2023

Ah, I just saw #163. This seems to be on purpose.

@partisan-bobryk
Copy link

partisan-bobryk commented Oct 23, 2023

Yea i don't know if Yanking the packages was a good call. Now a significant portion of ecosystem is broken. 🤦‍♂️ This package is 5 levels down one of my dependencies. ouef

@keehun
Copy link
Author

keehun commented Oct 23, 2023

I encourage everyone to not judge whether or not it was a good call but rather discuss how best to help this crate move forward.

@tkaitchuck
Copy link
Owner

Please see here for the reason: https://github.com/tkaitchuck/aHash/wiki/Yanked-versions
I can work on publishing a patch to the 0.7 branch. But the interface changed so little there is a 99% chance that just bumping the version should be enough

@CryZe
Copy link

CryZe commented Oct 23, 2023

Yeah backporting the fixes to 0.7 is probably the cleanest way forward. It takes too long for 0.8 to propagate through the indirect dependencies.

@Ten0
Copy link

Ten0 commented Oct 23, 2023

I encourage everyone to not judge whether or not it was a good call but rather discuss how best to help this crate move forward.

It is possible to un-yank versions. (And release a rustsec advisory.)

I can work on publishing a patch to the 0.7 branch

As far as I'm concerned I stopped compiling because of a "^0.4.4" requirement at depth 5.

@tkaitchuck
Copy link
Owner

#175

@keehun
Copy link
Author

keehun commented Oct 23, 2023

I agree with @CryZe. Given how deeply buried ahash is in the dependency tree, it would be quite a while before they’re all resolved. If 0.7 could be bumped, that would probably end in the quickest resolution.

A somewhat less quick method but one that could also work well is to backport the fix that caused the yanking in the first place to 0.7.x and release a “hotfix”.

@tkaitchuck
Copy link
Owner

0.7.7 is now published

@partisan-bobryk
Copy link

@tkaitchuck much thanks! 🌮 🌮 🌮

@tkaitchuck
Copy link
Owner

0.4.8 is also published with a patch.

@dfeyer
Copy link

dfeyer commented Oct 24, 2023

@tkaitchuck Thank you so much, what a blast and a fast move. Thanks

@keehun
Copy link
Author

keehun commented Oct 24, 2023

Thank you very much, @tkaitchuck!

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

No branches or pull requests

6 participants