Skip to content

cargo install sqlx-cli fails when compiling sqlx-cli #1378

Closed

Description

@sand-head

Howdy all! Noticed my CI starting failing with 35 errors some time this afternoon when installing sqlx-cli. The exact errors all vary, but they all make reference to the the derive macro Clap. Comparing my most recent successful logs, it looks like the CLI is now pulling in clap_derive v3.0.0-beta.4 when it was using v3.0.0-beta.2.

I was able to reproduce this on my local machine after uninstalling and attempting to reinstall.

Activity

  1. tolumide-ng commented on Aug 15, 2021

    @tolumide-ng

    For anyone else that might be experiencing the same problem,

    I resolved the issue on my end using the locked one e.g.
    rather than

    cargo install sqlx-cli
    

    I used:

    cargo install sqlx-cli --locked
    
  2. nixpulvis commented on Aug 15, 2021

    @nixpulvis

    I had just started to forget about this horrible cargo behavior: rust-lang/cargo#7169, but then I just wasted the better part of an hour over here scratching my head. Kinda funny, but I'm also a bit irritated right now too.

    Anyway, I wonder if this will become an issue for the developers during an update soon, or not.

  3. somin commented on Aug 16, 2021

    @somin

    Also running into this issue. Hoping this gets resolved soon

  4. abonander commented on Aug 16, 2021

    @abonander
    Collaborator

    Will look at this today, we already fix the version of clap at =3.0.0-beta.2 but we apparently need to fix the version of clap-derive as well as long as we're on the beta and subject to breaking changes.

  5. added a commit that references this issue on Aug 16, 2021
    104d39b
  6. added a commit that references this issue on Aug 16, 2021
    38435ca
  7. Deniallugo commented on Aug 18, 2021

    @Deniallugo

    Please, release this version of sqlx-cli

  8. added 2 commits that reference this issue on Nov 19, 2021
    6cdb35d
    b5a95c4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions