pontem-network / liquidswap

AMM core smart contracts
Other
167 stars 73 forks source link

Getting {"Error": "Unexpected error: Unable to resolve packages for package 'my_package_name'" } when running aptos move test #134

Closed f0kes closed 1 year ago

f0kes commented 1 year ago

Here is my Move.toml file.

[package]
name = 'my_package_name'
version = '1.0.0'

[dependencies.Liquidswap]
git = 'https://github.com/pontem-network/liquidswap.git'
rev = 'main'

[dependencies.LiquidswapRouterV2]
git = 'https://github.com/pontem-network/liquidswap.git'
subdir = 'liquidswap_router_v2/'
rev = 'main'

[dependencies.LiquidswapLP]
git = 'https://github.com/pontem-network/liquidswap.git'
subdir = 'liquidswap_lp/'
rev = 'main'

[addresses]
source_addr = "0xcafe"
#source_addr = "_"

Referencing liquidswap locally doesn't help either.

f0kes commented 1 year ago

Cloning your repository in a new folder and attempting to run "aptos move test" there leads to the same result. Same results on different machines. I am running aptos CLI through WSL ubuntu on both machines. Everything works when the only dependency I have is aptos framework.

borispovod commented 1 year ago

Hey @f0kes

Can you try Aptos CLI 1.0.0? We know there is bug in CLI 1.0.1 with resolving dependencies, already discussed with Aptos team.

f0kes commented 1 year ago

Thank you for your answer, it does indeed work as expected with Aptos CLI 1.0.0