-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Zekun Wang
committed
May 23, 2024
1 parent
e406711
commit 3bc6e61
Showing
14 changed files
with
153 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
1 change: 1 addition & 0 deletions
1
...d_party/move/tools/move-package/tests/test_sources/compilation/std-lib-conflicts/Move.exp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Unable to resolve packages for package 'std-lib-conflicts': While resolving dependency 'B' in package 'std-lib-conflicts': Unable to resolve package dependency 'B': While resolving dependency 'AptosFramework' in package 'B': Unable to resolve package dependency 'AptosFramework': Conflicting dependencies found: package 'AptosFramework' conflicts with 'AptosFramework' |
19 changes: 19 additions & 0 deletions
19
..._party/move/tools/move-package/tests/test_sources/compilation/std-lib-conflicts/Move.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
[package] | ||
name = "std-lib-conflicts" | ||
version = "1.0.0" | ||
authors = [] | ||
|
||
[addresses] | ||
A = "0x42" | ||
|
||
[dev-addresses] | ||
|
||
[dependencies.AptosFramework] | ||
git = "https://github.com/aptos-labs/aptos-core.git" | ||
rev = "devnet" | ||
subdir = "aptos-move/framework/aptos-framework" | ||
|
||
[dependencies.B] | ||
local = "./deps_only" | ||
|
||
[dev-dependencies] |
16 changes: 16 additions & 0 deletions
16
...e/tools/move-package/tests/test_sources/compilation/std-lib-conflicts/deps_only/Move.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
[package] | ||
name = "B" | ||
version = "1.0.0" | ||
authors = [] | ||
|
||
[addresses] | ||
B = "0x43" | ||
|
||
[dev-addresses] | ||
|
||
[dependencies.AptosFramework] | ||
git = "https://github.com/aptos-labs/aptos-core.git" | ||
rev = "mainnet" | ||
subdir = "aptos-move/framework/aptos-framework" | ||
|
||
[dev-dependencies] |
3 changes: 3 additions & 0 deletions
3
...ls/move-package/tests/test_sources/compilation/std-lib-conflicts/deps_only/sources/B.move
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module B::B { | ||
public fun foo() {} | ||
} |
6 changes: 6 additions & 0 deletions
6
...y/move/tools/move-package/tests/test_sources/compilation/std-lib-conflicts/sources/A.move
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module A::A { | ||
use B::B; | ||
public fun foo() { | ||
B::foo(); | ||
} | ||
} |
Empty file.
55 changes: 55 additions & 0 deletions
55
third_party/move/tools/move-package/tests/test_sources/compilation/std-lib-override/Move.exp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
CompiledPackageInfo { | ||
package_name: "std-lib-conflicts", | ||
address_alias_instantiation: { | ||
"A": 0000000000000000000000000000000000000000000000000000000000000042, | ||
"B": 0000000000000000000000000000000000000000000000000000000000000043, | ||
"Extensions": 0000000000000000000000000000000000000000000000000000000000000001, | ||
"aptos_framework": 0000000000000000000000000000000000000000000000000000000000000001, | ||
"aptos_fungible_asset": 000000000000000000000000000000000000000000000000000000000000000a, | ||
"aptos_std": 0000000000000000000000000000000000000000000000000000000000000001, | ||
"aptos_token": 0000000000000000000000000000000000000000000000000000000000000003, | ||
"core_resources": 000000000000000000000000000000000000000000000000000000000a550c18, | ||
"std": 0000000000000000000000000000000000000000000000000000000000000001, | ||
"vm": 0000000000000000000000000000000000000000000000000000000000000000, | ||
"vm_reserved": 0000000000000000000000000000000000000000000000000000000000000000, | ||
}, | ||
source_digest: Some( | ||
"ELIDED_FOR_TEST", | ||
), | ||
build_flags: BuildConfig { | ||
dev_mode: true, | ||
test_mode: false, | ||
override_std: Some( | ||
"devnet", | ||
), | ||
generate_docs: false, | ||
generate_abis: false, | ||
generate_move_model: false, | ||
full_model_generation: false, | ||
install_dir: Some( | ||
"ELIDED_FOR_TEST", | ||
), | ||
force_recompilation: false, | ||
additional_named_addresses: {}, | ||
architecture: None, | ||
fetch_deps_only: false, | ||
skip_fetch_latest_git_deps: false, | ||
compiler_config: CompilerConfig { | ||
bytecode_version: None, | ||
known_attributes: { | ||
"bytecode_instruction", | ||
"deprecated", | ||
"expected_failure", | ||
"native_interface", | ||
"test", | ||
"test_only", | ||
"verify_only", | ||
}, | ||
skip_attribute_checks: false, | ||
compiler_version: Some( | ||
V1, | ||
), | ||
language_version: None, | ||
}, | ||
}, | ||
} |
1 change: 1 addition & 0 deletions
1
...rty/move/tools/move-package/tests/test_sources/compilation/std-lib-override/Move.override
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
devnet |
19 changes: 19 additions & 0 deletions
19
...d_party/move/tools/move-package/tests/test_sources/compilation/std-lib-override/Move.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
[package] | ||
name = "std-lib-conflicts" | ||
version = "1.0.0" | ||
authors = [] | ||
|
||
[addresses] | ||
A = "0x42" | ||
|
||
[dev-addresses] | ||
|
||
[dependencies.AptosFramework] | ||
git = "https://github.com/aptos-labs/aptos-core.git" | ||
rev = "devnet" | ||
subdir = "aptos-move/framework/aptos-framework" | ||
|
||
[dependencies.B] | ||
local = "./deps_only" | ||
|
||
[dev-dependencies] |
16 changes: 16 additions & 0 deletions
16
...ve/tools/move-package/tests/test_sources/compilation/std-lib-override/deps_only/Move.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
[package] | ||
name = "B" | ||
version = "1.0.0" | ||
authors = [] | ||
|
||
[addresses] | ||
B = "0x43" | ||
|
||
[dev-addresses] | ||
|
||
[dependencies.AptosFramework] | ||
git = "https://github.com/aptos-labs/aptos-core.git" | ||
rev = "mainnet" | ||
subdir = "aptos-move/framework/aptos-framework" | ||
|
||
[dev-dependencies] |
3 changes: 3 additions & 0 deletions
3
...ols/move-package/tests/test_sources/compilation/std-lib-override/deps_only/sources/B.move
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module B::B { | ||
public fun foo() {} | ||
} |
6 changes: 6 additions & 0 deletions
6
...ty/move/tools/move-package/tests/test_sources/compilation/std-lib-override/sources/A.move
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module A::A { | ||
use B::B; | ||
public fun foo() { | ||
B::foo(); | ||
} | ||
} |