Skip to content

installing cli with --locked doesn't work #548

@emilbonnek

Description

@emilbonnek
❯ cargo install graphql_client_cli --locked
    Updating crates.io index
  Installing graphql_client_cli v0.14.0
    Updating crates.io index
warning: package `futures-util v0.3.25` in Cargo.lock is yanked in registry `crates-io`, consider running without --locked
    Updating crates.io index
   Compiling proc-macro2 v1.0.49
   Compiling quote v1.0.23
   Compiling unicode-ident v1.0.6
   Compiling syn v1.0.107
   Compiling autocfg v1.1.0
   Compiling libc v0.2.139
   Compiling memchr v2.5.0
   Compiling cfg-if v1.0.0
   Compiling log v0.4.17
   Compiling serde_derive v1.0.152
   Compiling serde v1.0.152
   Compiling once_cell v1.17.0
   Compiling pkg-config v0.3.26
   Compiling cc v1.0.78
   Compiling pin-project-lite v0.2.9
   Compiling futures-core v0.3.25
   Compiling bytes v1.3.0
   Compiling thiserror v1.0.38
   Compiling itoa v1.0.5
   Compiling serde_json v1.0.91
   Compiling version_check v0.9.4
   Compiling futures-task v0.3.25
   Compiling hashbrown v0.12.3
   Compiling futures-util v0.3.25
   Compiling openssl v0.10.45
   Compiling bitflags v1.3.2
   Compiling foreign-types-shared v0.1.1
   Compiling fnv v1.0.7
   Compiling tracing-core v0.1.30
   Compiling foreign-types v0.3.2
   Compiling futures-channel v0.3.25
   Compiling native-tls v0.2.11
   Compiling tinyvec_macros v0.1.0
   Compiling httparse v1.8.0
   Compiling futures-sink v0.3.25
   Compiling void v1.0.2
   Compiling pin-utils v0.1.0
   Compiling futures-io v0.3.25
   Compiling tinyvec v1.6.0
   Compiling unreachable v1.0.0
   Compiling tokio v1.24.1
   Compiling indexmap v1.9.2
   Compiling slab v0.4.7
   Compiling proc-macro-error-attr v1.0.4
   Compiling percent-encoding v2.2.0
   Compiling ryu v1.0.12
error[E0635]: unknown feature `proc_macro_span_shrink`
  --> /home/emilbonnek/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/proc-macro2-1.0.49/src/lib.rs:92:30
   |
92 |     feature(proc_macro_span, proc_macro_span_shrink)
   |                              ^^^^^^^^^^^^^^^^^^^^^^

   Compiling openssl-probe v0.1.5
   Compiling byteorder v1.4.3
   Compiling http v0.2.8
   Compiling try-lock v0.2.4
   Compiling ascii v0.9.3
   Compiling heck v0.4.0
   Compiling either v1.8.0
   Compiling want v0.3.0
   Compiling form_urlencoded v1.1.0
   Compiling proc-macro-error v1.0.4
For more information about this error, try `rustc --explain E0635`.
error: could not compile `proc-macro2` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
error: failed to compile `graphql_client_cli v0.14.0`, intermediate artifacts can be found at `/tmp/cargo-installRWs2gc`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.

Removing --locked still works though.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions