Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Build fails on Windows #226

@sunce86

Description

@sunce86

Currently, build fails on Windows OS. Some of the smart contract json files fail to parse with the following error:

error: failed to run custom build command for contracts v0.1.0 (C:\Users\lenas\work\backend\main\crates\contracts)

Caused by:
process didn't exit successfully: C:\Users\lenas\work\backend\main\target\debug\build\contracts-edc0b80862fececf\build-script-build (exit code: 101)
--- stdout
cargo:rerun-if-changed=build.rs
cargo:rerun-if-changed=C:\Users\lenas\work\backend\main\crates\contracts\artifacts\BalancerV2Authorizer.json
cargo:rerun-if-changed=C:\Users\lenas\work\backend\main\crates\contracts\artifacts\BalancerV2BasePool.json
cargo:rerun-if-changed=C:\Users\lenas\work\backend\main\crates\contracts\artifacts\BalancerV2BasePoolFactory.json
cargo:rerun-if-changed=C:\Users\lenas\work\backend\main\crates\contracts\artifacts\BalancerV2Vault.json
cargo:rerun-if-changed=C:\Users\lenas\work\backend\main\crates\contracts\artifacts\BalancerV2WeightedPoolFactory.json
cargo:rerun-if-changed=C:\Users\lenas\work\backend\main\crates\contracts\artifacts\BalancerV2WeightedPool2TokensFactory.json
cargo:rerun-if-changed=C:\Users\lenas\work\backend\main\crates\contracts\artifacts\BalancerV2StablePoolFactory.json
cargo:rerun-if-changed=C:\Users\lenas\work\backend\main\crates\contracts\artifacts\BalancerV2LiquidityBootstrappingPoolFactory.json

--- stderr
error[internal]: left behind trailing whitespace
--> :1684:1684:16
|
1684 | pub
| ^
|

warning: rustfmt has failed to format. See previous 1 errors.

thread 'main' panicked at 'called Result::unwrap() on an Err value: Json(Error("expected value", line: 1, column: 1))', crates\contracts\build.rs:296:10

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