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 error occurs in 0.10 with docker #446

Closed
maze1230 opened this issue Feb 14, 2021 · 1 comment · Fixed by #447
Closed

Build error occurs in 0.10 with docker #446

maze1230 opened this issue Feb 14, 2021 · 1 comment · Fixed by #447

Comments

@maze1230
Copy link

maze1230 commented Feb 14, 2021

Hello!

I tried to use askama in Docker official rust image but it failed with compile error in bitvec like this.

error[E0034]: multiple applicable items in scope
   --> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/bitvec-0.19.4/src/field.rs:307:25
    |
307 |         check("load", len, M::BITS);
    |                               ^^^^ multiple `BITS` found
    |
note: candidate #1 is defined in the trait `BitMemory`
   --> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/bitvec-0.19.4/src/mem.rs:29:2
    |
29  |     const BITS: u8 = mem::size_of::<Self>() as u8 * 8;
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: candidate #2 is defined in the trait `IsNumber`
   --> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/funty-1.2.0/src/lib.rs:144:2
    |
144 |     const BITS: u32;
    |     ^^^^^^^^^^^^^^^^
help: disambiguate the associated constant for candidate #1
    |
307 |         check("load", len, BitMemory::BITS);
    |                            ^^^^^^^^^^^^^^^
help: disambiguate the associated constant for candidate #2
    |
307 |         check("load", len, IsNumber::BITS);
    |                            ^^^^^^^^^^^^^^

...

error: aborting due to 43 previous errors

Some errors have detailed explanations: E0034, E0308.
For more information about an error, try `rustc --explain E0034`.
error: could not compile `bitvec`

To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: aborting due to 43 previous errors

Some errors have detailed explanations: E0034, E0308.
For more information about an error, try `rustc --explain E0034`.
error: build failed

These are Dockerfile and Cargo.toml I tried.

FROM rust:1.50.0

WORKDIR /test
COPY Cargo.toml Cargo.toml
RUN mkdir src && echo "fn main() {}" > src/main.rs

RUN cargo build --release
[package]
name = "test"
version = "0.1.0"
authors = [""]
edition = "2018"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
askama = "0.10.5"

However, the build succeeds in version 0.9.0 and before.
What is cause of this?

@edg-l
Copy link
Contributor

edg-l commented Feb 14, 2021

I get this too.

Edit: I don't think this is askama fault, bitvec seems to be broken.

ferrilab/bitvec#105

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

Successfully merging a pull request may close this issue.

2 participants