Skip to content

Cannot Build Images anymore #32

Open
@daggy1234

Description

@daggy1234

Expected Behavior

When compiling actix-web using cargo wharf with docker build kit, the crate should compile

Compiled fine with a normal docker file, doesn't with cargo wharf.

Current Behavior

Errors with the following message

------
 > Compiling actix-web-codegen:
#242 2.736 error[E0432]: unresolved import `proc_macro`
#242 2.736   --> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/actix-web-codegen-0.4.0/src/lib.rs:63:5
#242 2.736    |
#242 2.736 63 | use proc_macro::TokenStream;
#242 2.736    |     ^^^^^^^^^^ help: a similar path exists: `syn::proc_macro`
#242 2.754 
#242 3.138 error: aborting due to previous error
#242 3.138 
#242 3.138 For more information about this error, try `rustc --explain E0432`.
------
failed to solve with frontend dockerfile.v0: failed to solve with frontend gateway.v0: rpc error: code = Unknown desc = Unable to build the crate => caused by: Unable to solve the graph => caused by: grpc-status: Unknown, grpc-message: "failed to build LLB: executor failed running [rustc --edition=2018 --crate-name actix_web_codegen /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/actix-web-codegen-0.4.0/src/lib.rs --color never --crate-type proc-macro --emit=dep-info,link -C prefer-dynamic -C opt-level=3 -C metadata=a3bb0cb5e1cde293 -C extra-filename=-a3bb0cb5e1cde293 --out-dir /target/release/deps -L dependency=/target/release/deps --extern proc_macro2=/target/release/deps/libproc_macro2-d94ec969ac1bef7e.rlib --extern quote=/target/release/deps/libquote-0451cbe6c2d2830e.rlib --extern syn=/target/release/deps/libsyn-2ff5fc6c29cb0289.rlib --cap-lints allow]: runc did not terminate sucessfully"

Possible Solution

no idea but it suggests changing the import

Steps to Reproduce (for bugs)

  1. Setup Docker build kit and try and compile actix-we with cargo wharf

ex: https://github.com/Daggy1234/dagpi-auth

Context

Its hard to compile actix web with build kit

Your Environment

  • Rust Version (I.e, output of rustc -V): Docker(1.48.0)
  • Actix Web Version: 3.3.0

Activity

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

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions