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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] failed to run custom build command for `aptos-cached-packages v0.1.0 #12682

Open
zcpua opened this issue Mar 26, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@zcpua
Copy link

zcpua commented Mar 26, 2024

馃悰 Bug

run create_nft_getting_production_ready demo need signatue
/// - 3.c Generate a valid signature.
/// Open up file aptos-core/aptos-move/e2e-move-tests/src/tests/mint_nft.rs.
/// In function generate_nft_tutorial_part4_signature, change the resource_address, nft_receiver, admin_private_key, and receiver_account_sequence_number variables to the actual values.
/// You can find the admin_private_key by running nano output.key, and the receiver_account_sequence_number by looking up the receiver's address on the Aptos Explorer under tab Info.
/// Make sure you're in the right directory.
/// Run the following command in directory aptos-core/aptos-move/e2e-move-tests
/// Run cargo test generate_nft_tutorial_part4_signature -- --nocapture to generate a valid signature that we'll use in the next step.

cargo test generate_nft_tutorial_part4_signature -- --nocapture

Stack trace/error message

error: failed to run custom build command for `aptos-cached-packages v0.1.0 (/Users/ericheyden/www/ohdat/testaptos/aptos-core/aptos-move/framework/cached-packages)`

Caused by:
  process didn't exit successfully: `/Users/ericheyden/www/ohdat/testaptos/aptos-core/target/debug/build/aptos-cached-packages-bcc4fb1432eb4d9f/build-script-build` (exit status: 1)
  --- stdout
  cargo:rerun-if-changed=/Users/ericheyden/www/ohdat/testaptos/aptos-core/aptos-move/framework/aptos-token-objects/Move.toml
  cargo:rerun-if-changed=/Users/ericheyden/www/ohdat/testaptos/aptos-core/aptos-move/framework/aptos-token-objects/sources
  cargo:rerun-if-changed=/Users/ericheyden/www/ohdat/testaptos/aptos-core/aptos-move/framework/aptos-token/sources
  cargo:rerun-if-changed=/Users/ericheyden/www/ohdat/testaptos/aptos-core/aptos-move/framework/aptos-token/Move.toml
  cargo:rerun-if-changed=/Users/ericheyden/www/ohdat/testaptos/aptos-core/aptos-move/framework/aptos-token-objects/sources
  cargo:rerun-if-changed=/Users/ericheyden/www/ohdat/testaptos/aptos-core/aptos-move/framework/aptos-token-objects/Move.toml
  cargo:rerun-if-changed=/Users/ericheyden/www/ohdat/testaptos/aptos-core/aptos-move/framework/aptos-framework/sources
  cargo:rerun-if-changed=/Users/ericheyden/www/ohdat/testaptos/aptos-core/aptos-move/framework/aptos-framework/Move.toml
  cargo:rerun-if-changed=/Users/ericheyden/www/ohdat/testaptos/aptos-core/aptos-move/framework/aptos-stdlib/sources
  cargo:rerun-if-changed=/Users/ericheyden/www/ohdat/testaptos/aptos-core/aptos-move/framework/aptos-stdlib/Move.toml
  cargo:rerun-if-changed=/Users/ericheyden/www/ohdat/testaptos/aptos-core/aptos-move/framework/move-stdlib/sources
  cargo:rerun-if-changed=/Users/ericheyden/www/ohdat/testaptos/aptos-core/aptos-move/framework/move-stdlib/Move.toml
  Including package `MoveStdlib` size 35k
  Including package `AptosStdlib` size 171k

  --- stderr
  Compiling, may take a little while to download git dependencies...
  BUILDING MoveStdlib
  Compiling, may take a little while to download git dependencies...
  INCLUDING DEPENDENCY MoveStdlib
  BUILDING AptosStdlib
  Compiling, may take a little while to download git dependencies...
  INCLUDING DEPENDENCY AptosStdlib
  INCLUDING DEPENDENCY MoveStdlib
  BUILDING AptosFramework
  Error: Failed to create release

  Caused by:
      0: Failed to generate Rust bindings for /Users/ericheyden/www/ohdat/testaptos/aptos-core/aptos-move/framework/aptos-framework at binding path /Users/ericheyden/www/ohdat/testaptos/aptos-core/aptos-move/framework/cached-packages/src/aptos_framework_sdk_builder.rs
      1: Failed to run rustfmt on /Users/ericheyden/www/ohdat/testaptos/aptos-core/aptos-move/framework/cached-packages/src/aptos_framework_sdk_builder.rs, is rustfmt installed?
      2: No such file or directory (os error 2)

Expected Behavior

A clear and concise description of what you expected to happen.

System information

Please complete the following information:

  • Aptos Core Version aptos 3.1.0
  • Rust Version rustc 1.76.0
  • Computer OS macos 14.2.1
@zcpua zcpua added the bug Something isn't working label Mar 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: 馃帀 New
Development

No branches or pull requests

1 participant