elastic / elasticsearch-rs

Official Elasticsearch Rust Client
https://www.elastic.co/guide/en/elasticsearch/client/rust-api/current/index.html
Apache License 2.0
695 stars 70 forks source link

[BUG] 8.0.0-alpha.1 does not exist in crates.io registry #157

Closed kevherro closed 3 years ago

kevherro commented 3 years ago

Describe the bug I have elasticsearch = "8.0.0-alpha.1" in my Cargo.toml file, as described in the Installing section of the README. After running cargo build, I get the following error:

    Updating crates.io index
error: no matching package named `elasticsearch` found
location searched: registry `https://github.com/rust-lang/crates.io-index`
required by package `chatops v0.1.0 (/Users/kherro/Workspace/chatops)`

To Reproduce Steps to reproduce the behavior:

  1. Add elasticsearch = "8.0.0-alpha.1" in the [dependencies] section of your Cargo.toml file.
  2. Run cargo build

Expected behavior I expect cargo build to successfully compile a local package and all of its dependencies.

Screenshots Screen Shot 2021-01-12 at 7 33 50 AM

Screen Shot 2021-01-12 at 7 34 50 AM

Environment (please complete the following information):

Additional context I can successfully cargo build after replacing elasticsearch = "8.0.0-alpha.1" with elasticsearch = "7.10.0-alpha.1", as found on crates.io.

russcam commented 3 years ago

Hey @kherro, thanks for raising 👍

The README.md on the master branch is tracking Elasticsearch master branch, which has commits in for the next major version, 8.0. Versions of the client are released from 7.x and minor branches such as 7.10 (which are cut from 7.x when 7.10.0 is released, for example), where the versions in the respective READMEs reflect the state of the branches.

An unfortunate side effect of this flow is that the README.md seen when landing on the repository will be the master branch, which may relate to a version not yet released. But, this flow keeps the version in all files in a branch in sync, which makes it a little less cognitively burdensome than needing to ensure the README on the master branch is updated each time a new version is released.

docs.rs and crates.io will always contain the correct released versions, which are shown in the badges at the top of the README.

Hope this explains the setup.

fragsalat commented 2 years ago

When will the 8.0.0-alpha.1 will be deployed? It has been over a year now since this issue was closed but still no 8.0.0 version is available on crates.io