Skip to content

Commit

Permalink
[third party/.../test, compiler] Fix Move.toml files to point to loca…
Browse files Browse the repository at this point in the history
…l files instead of network to avoid tests using old stdlib. Oddly, this requires fixes to capitalization of std. Fix the resolution warning to make it clear that std needs to be uncapitalized.
  • Loading branch information
brmataptos committed Aug 5, 2023
1 parent 0dac829 commit 31d69ee
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 15 deletions.
3 changes: 1 addition & 2 deletions aptos-move/aptos-vm-benchmarks/samples/add-numbers/Move.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@
name = 'add-numbers'
version = '1.0.0'
[dependencies.AptosFramework]
git = 'https://github.com/aptos-labs/aptos-core.git'
rev = 'main'
local = '../../../..'
subdir = 'aptos-move/framework/aptos-framework'
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "Package1"
version = "0.0.0"

[addresses]
Std = "0x1"
std = "0x1"

[dependencies]
MoveStdlib = { git = "https://github.com/diem/move.git", subdir = "language/move-stdlib", rev = "98ed299" }
MoveStdlib = { local = "../../../../move-stdlib" }
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "Package2"
version = "0.0.0"

[addresses]
Std = "0x1"
std = "0x1"

[dependencies]
MoveStdlib = { git = "https://github.com/diem/move.git", subdir = "language/move-stdlib", rev = "98ed299" }
MoveStdlib = { local = "../../../../move-stdlib" }
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ name = "Package1"
version = "0.0.0"

[addresses]
Std = "0x1"
std = "0x1"
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ name = "Package1"
version = "0.0.0"

[addresses]
Std = "0x1"
std = "0x1"
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ name = "Package1"
version = "0.0.0"

[addresses]
Std = "0x1"
std = "0x1"
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ name = "Package1"
version = "0.0.0"

[addresses]
Std = "0x1"
std = "0x1"
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ impl ResolvingGraph {
bail!(
"Unresolved addresses found: [\n{}\n]\n\
To fix this, add an entry for each unresolved address to the [addresses] section of {}/Move.toml: \
e.g.,\n[addresses]\nStd = \"0x1\"\n\
e.g.,\n[addresses]\nstd = \"0x1\"\n\
Alternatively, you can also define [dev-addresses] and call with the --dev flag",
unresolved_addresses.join("\n"),
root_package_path.to_string_lossy()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "Package1"
version = "0.0.0"

[addresses]
Std = "0x1"
std = "0x1"

[dependencies]
MoveStdlib = { git = "https://github.com/diem/move.git", subdir = "language/move-stdlib", rev = "98ed299" }
MoveStdlib = { local = "../../../../../move-stdlib" }
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "Package2"
version = "0.0.0"

[addresses]
Std = "0x1"
std = "0x1"

[dependencies]
MoveStdlib = { git = "https://github.com/diem/move.git", subdir = "language/move-stdlib", rev = "98ed299" }
MoveStdlib = { local = "../../../../../move-stdlib" }

0 comments on commit 31d69ee

Please sign in to comment.