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

[aptos-cli] Use current directory for workspace .aptos if it doesn't exist #2845

Merged
merged 1 commit into from
Aug 12, 2022

Conversation

gregnazario
Copy link
Contributor

@gregnazario gregnazario commented Aug 12, 2022

Test Plan

cargo run -p aptos -- node run-local-testnet --with-faucet
warning: patch for `diesel` uses the features mechanism. default-features and features will not take effect because the patch dependency does not support this mechanism
   Compiling aptos v0.2.4 (/opt/git/aptos-core/crates/aptos)
    Finished dev [unoptimized + debuginfo] target(s) in 26.22s
     Running `target/debug/aptos node run-local-testnet --with-faucet`
Building genesis with 1 validators. Directory of output: "/opt/git/aptos-core/.aptos/testnet"
Completed generating configuration:
        Log file: "/opt/git/aptos-core/.aptos/testnet/validator.log"
        Test dir: "/opt/git/aptos-core/.aptos/testnet"
        Aptos root key path: "/opt/git/aptos-core/.aptos/testnet/mint.key"
        Waypoint: 0:baf2610e2c80c28204b22f116f15341a952b82cdd2556b685c772b4867bf2c38
        ChainId: TESTING
        REST API endpoint: 0.0.0.0:8080
        FullNode network: /ip4/0.0.0.0/tcp/6181

Aptos is running, press ctrl-c to exit

Faucet is running.  Faucet endpoint: 0.0.0.0:8081
^C
(venv)  ✘ greg@jiggy  /opt/git/aptos-core   fix-cli-path  rm .aptos 
rm: .aptos: is a directory
(venv)  ✘ greg@jiggy  /opt/git/aptos-core   fix-cli-path  rm -r .aptos
(venv)  greg@jiggy  /opt/git/aptos-core   fix-cli-path  cargo run -p aptos -- node run-local-testnet --with-faucet
warning: patch for `diesel` uses the features mechanism. default-features and features will not take effect because the patch dependency does not support this mechanism
    Finished dev [unoptimized + debuginfo] target(s) in 0.76s
     Running `target/debug/aptos node run-local-testnet --with-faucet`
Building genesis with 1 validators. Directory of output: "/opt/git/aptos-core/.aptos/testnet"
Completed generating configuration:
        Log file: "/opt/git/aptos-core/.aptos/testnet/validator.log"
        Test dir: "/opt/git/aptos-core/.aptos/testnet"
        Aptos root key path: "/opt/git/aptos-core/.aptos/testnet/mint.key"
        Waypoint: 0:1cb4fd88e241a53038f5cbd25fa1a08a386e11eea965ba0093f0852e86888fdb
        ChainId: TESTING
        REST API endpoint: 0.0.0.0:8080
        FullNode network: /ip4/0.0.0.0/tcp/6181

Aptos is running, press ctrl-c to exit

^C
(venv)  ✘ greg@jiggy  /opt/git/aptos-core   fix-cli-path  ls .aptos 
testnet


This change is Reviewable

@gregnazario gregnazario requested review from wrwg and geekflyer August 12, 2022 00:36
Copy link
Contributor

@wrwg wrwg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess there are some baselines you have to fix...

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 this pull request may close these issues.

2 participants