aptos-core icon indicating copy to clipboard operation
aptos-core copied to clipboard

[Bug] aptos move init creating dependency with outdated name

Open borispovod opened this issue 3 years ago • 1 comments

🐛 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]

borispovod avatar Aug 11 '22 07:08 borispovod

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.

github-actions[bot] avatar Nov 07 '22 06:11 github-actions[bot]

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'

gregnazario avatar Dec 21 '22 08:12 gregnazario