aptos-core
aptos-core copied to clipboard
[Bug] aptos move init creating dependency with outdated name
🐛 Bug
The name of Aptos framework dependency after initialization of package using aptos move init seems wrong for me, it's AptosFramework1, should be aptos_framework.
Aptos CLI version v0.2.3.
To reproduce
mkdir test-aptos
cd test-aptos
aptos move init --name test
cat Move.toml
See Move.toml:
[package]
name = "test"
version = "0.0.0"
[dependencies]
AptosFramework = { git = "https://github.com/aptos-labs/aptos-core.git", subdir = "aptos-move/framework/aptos-framework/", rev = "devnet" }
[addresses]
This issue is stale because it has been open 45 days with no activity. Remove the stale label or comment - otherwise this will be closed in 15 days.
Looks correct to me now, it will be AptosFramework
$ mkdir test-folder
$ cd test-folder
$ aptos move init --name test
{
"Result": "Success"
}
$ cat Move.toml
[package]
name = 'test'
version = '1.0.0'
[dependencies.AptosFramework]
git = 'https://github.com/aptos-labs/aptos-core.git'
rev = 'main'
subdir = 'aptos-move/framework/aptos-framework'