Coder Social home page Coder Social logo

Comments (7)

Turbo87 avatar Turbo87 commented on June 19, 2024 3

#6518 has now been deployed. in other words: crates.io no longer allows "publishes with versions only differing in metadata"

from crates.io.

epage avatar epage commented on June 19, 2024 2

Ah, that pointed me to this being a dupe of #1059

from crates.io.

Turbo87 avatar Turbo87 commented on June 19, 2024 1

for cross-referencing: we discussed the situation on Zulip (see https://rust-lang.zulipchat.com/#narrow/stream/318791-t-crates-io/topic/const_fn_assert/near/356688583)

we decided to remove const_fn_assert#0.1.2+deprecated from crates.io since our backend shouldn't have accepted the publish in the first place. I've also sent an email to the crate owner explaining the situation.

since we already have #1059 for tracking the problem I'll go ahead and close this issue here since the const_fn_assert situation itself has been resolved AFAICT.

from crates.io.

Turbo87 avatar Turbo87 commented on June 19, 2024

let hex_cksum: String = Sha256::digest(&tarball_bytes).encode_hex();
suggests that we calculate the checksum ourself, so I'm quite curious now what went wrong with that publish 🤔

from crates.io.

Turbo87 avatar Turbo87 commented on June 19, 2024

I think the problem here is how "build metadata" in the version field is handled. You can see at https://crates.io/crates/const_fn_assert/versions that crates.io now has 0.1.2 and 0.1.2+deprecated. crates.io currently treats them as different versions (for no good reason IMHO), and I assume cargo ignores the build metadata and downloads a different crate file that does not correspond to the build metadata.

/cc @rust-lang/cargo

from crates.io.

sdroege avatar sdroege commented on June 19, 2024

Ah that would make sense and would at least be an honest mistake. Thanks for checking this so fast :)

from crates.io.

epage avatar epage commented on June 19, 2024

rust-lang/cargo#11412 for where the cargo team has discussed this

from crates.io.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.