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

Build entirely broken due to downstream changes #94

Closed
emidoots opened this issue Apr 29, 2018 · 1 comment
Closed

Build entirely broken due to downstream changes #94

emidoots opened this issue Apr 29, 2018 · 1 comment

Comments

@emidoots
Copy link

$ rustc --version
rustc 1.27.0-nightly (66363b288 2018-04-28)
$ cargo install cargo-web
    Updating registry `https://github.com/rust-lang/crates.io-index`
  Installing cargo-web v0.6.10
...
   Compiling atty v0.2.9
error[E0428]: the name `is` is defined multiple times
   --> /Users/stephen/.cargo/registry/src/github.com-1ecc6299db9ec823/atty-0.2.9/src/lib.rs:164:1
    |
40  | pub fn is(stream: Stream) -> bool {
    | --------------------------------- previous definition of the value `is` here
...
164 | pub fn is(_stream: Stream) -> bool {
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `is` redefined here
    |
    = note: `is` must be defined only once in the value namespace of this module

error: aborting due to previous error

For more information about this error, try `rustc --explain E0428`.
error: Could not compile `atty`.
warning: build failed, waiting for other jobs to finish...
error: failed to compile `cargo-web v0.6.10`, intermediate artifacts can be found at `/var/folders/dn/hvqfd0nn4wq2yn57_bdvj2ph0000gn/T/cargo-installGHNJ67`

Caused by:
  build failed

The build appears to be broken due to downstream changes in the atty crate. Looks like softprops/atty#21 is potentially the same cause.

@emidoots
Copy link
Author

Unfortunately I just found out that this is 100% due to my local Rust installation. Somehow cargo is trying to build for wasm by default, which was causing this issue for me. See softprops/atty#26

Sorry for the noise :/

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

1 participant