Normal behavior:
The Aptos CLI should detect the .aptos/config.yaml
inside the project directory and use it when publishing the Move contract.
Issue:
The CLI instead defaults to looking in the global user directory (C:\Users\USER\.aptos
) and fails if that path doesn’t exist, even when a valid config.yaml
exists in the project’s .aptos
folder.
Likelihood:
This will always occur when running Aptos CLI from a project folder that has .aptos/config.yaml
, if the command is not explicitly run from within that folder.
It is common for developers to run commands from their home directory or project root, making the bug highly reproducible.
Impact:
Developers cannot publish Move contracts even if config.yaml
exists, blocking progress.
Causes unnecessary confusion, since the error message suggests aptos init
is missing rather than pointing to the wrong config path.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.