-
Notifications
You must be signed in to change notification settings - Fork 219
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore!: Require package names in
Nargo.toml
files (#2056)
* chore!: Require package names in `Nargo.toml` files * feat: add a helpful error message for missing names in Nargo.toml --------- Co-authored-by: TomAFrench <tom@tomfren.ch>
- Loading branch information
1 parent
898a9fa
commit bb28223
Showing
138 changed files
with
338 additions
and
213 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
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
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
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
[package] | ||
name = "fail_basic" | ||
authors = [""] | ||
compiler_version = "0.1" | ||
|
||
|
1 change: 1 addition & 0 deletions
1
crates/nargo_cli/tests/target_tests_data/fail/dup_func/Nargo.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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
[package] | ||
name = "fail_dup_func" | ||
authors = [""] | ||
compiler_version = "0.1" | ||
|
||
|
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
[package] | ||
name = "pass_basic" | ||
authors = [""] | ||
compiler_version = "0.1" | ||
|
||
|
1 change: 1 addition & 0 deletions
1
crates/nargo_cli/tests/target_tests_data/pass/import/Nargo.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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
[package] | ||
name = "pass_import" | ||
authors = [""] | ||
compiler_version = "0.1" | ||
|
||
|
3 changes: 2 additions & 1 deletion
3
crates/nargo_cli/tests/target_tests_data/pass_dev_mode/unused/Nargo.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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
[package] | ||
name = "pass_dev_mode_unused" | ||
authors = [""] | ||
compiler_version = "0.1" | ||
|
||
[dependencies] | ||
[dependencies] |
3 changes: 2 additions & 1 deletion
3
crates/nargo_cli/tests/test_data_ssa_refactor/1327_concrete_in_generic/Nargo.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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
[package] | ||
name = "1327_concrete_in_generic" | ||
authors = [""] | ||
compiler_version = "0.6.0" | ||
|
||
[dependencies] | ||
[dependencies] |
3 changes: 2 additions & 1 deletion
3
crates/nargo_cli/tests/test_data_ssa_refactor/1_mul/Nargo.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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
[package] | ||
name = "1_mul" | ||
authors = [""] | ||
compiler_version = "0.1" | ||
|
||
[dependencies] | ||
[dependencies] |
3 changes: 2 additions & 1 deletion
3
crates/nargo_cli/tests/test_data_ssa_refactor/2_div/Nargo.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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
[package] | ||
name = "2_div" | ||
authors = [""] | ||
compiler_version = "0.1" | ||
|
||
[dependencies] | ||
[dependencies] |
3 changes: 2 additions & 1 deletion
3
crates/nargo_cli/tests/test_data_ssa_refactor/3_add/Nargo.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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
[package] | ||
name = "3_add" | ||
authors = [""] | ||
compiler_version = "0.1" | ||
|
||
[dependencies] | ||
[dependencies] |
3 changes: 2 additions & 1 deletion
3
crates/nargo_cli/tests/test_data_ssa_refactor/4_sub/Nargo.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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
[package] | ||
name = "4_sub" | ||
authors = [""] | ||
compiler_version = "0.1" | ||
|
||
[dependencies] | ||
[dependencies] |
3 changes: 2 additions & 1 deletion
3
crates/nargo_cli/tests/test_data_ssa_refactor/5_over/Nargo.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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
[package] | ||
name = "5_over" | ||
authors = [""] | ||
compiler_version = "0.1" | ||
|
||
[dependencies] | ||
[dependencies] |
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
[package] | ||
name = "6" | ||
authors = [""] | ||
compiler_version = "0.1" | ||
|
||
[dependencies] | ||
[dependencies] |
3 changes: 2 additions & 1 deletion
3
crates/nargo_cli/tests/test_data_ssa_refactor/6_array/Nargo.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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
[package] | ||
name = "6_array" | ||
authors = [""] | ||
compiler_version = "0.1" | ||
|
||
[dependencies] | ||
[dependencies] |
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
[package] | ||
name = "7" | ||
authors = [""] | ||
compiler_version = "0.1" | ||
|
||
[dependencies] | ||
[dependencies] |
3 changes: 2 additions & 1 deletion
3
crates/nargo_cli/tests/test_data_ssa_refactor/7_function/Nargo.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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
[package] | ||
name = "7_function" | ||
authors = [""] | ||
compiler_version = "0.1" | ||
|
||
[dependencies] | ||
[dependencies] |
3 changes: 2 additions & 1 deletion
3
crates/nargo_cli/tests/test_data_ssa_refactor/8_integration/Nargo.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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
[package] | ||
name = "8_integration" | ||
authors = [""] | ||
compiler_version = "0.1" | ||
|
||
[dependencies] | ||
[dependencies] |
3 changes: 2 additions & 1 deletion
3
crates/nargo_cli/tests/test_data_ssa_refactor/9_conditional/Nargo.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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
[package] | ||
name = "9_conditional" | ||
authors = [""] | ||
compiler_version = "0.1" | ||
|
||
[dependencies] | ||
[dependencies] |
3 changes: 2 additions & 1 deletion
3
crates/nargo_cli/tests/test_data_ssa_refactor/arithmetic_binary_operations/Nargo.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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
[package] | ||
name = "arithmetic_binary_operations" | ||
authors = [""] | ||
compiler_version = "0.1" | ||
|
||
[dependencies] | ||
[dependencies] |
3 changes: 2 additions & 1 deletion
3
crates/nargo_cli/tests/test_data_ssa_refactor/array_dynamic/Nargo.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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
[package] | ||
name = "array_dynamic" | ||
authors = [""] | ||
compiler_version = "0.1" | ||
|
||
[dependencies] | ||
[dependencies] |
3 changes: 2 additions & 1 deletion
3
crates/nargo_cli/tests/test_data_ssa_refactor/array_len/Nargo.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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
[package] | ||
name = "array_len" | ||
authors = [""] | ||
compiler_version = "0.1" | ||
|
||
[dependencies] | ||
[dependencies] |
3 changes: 2 additions & 1 deletion
3
crates/nargo_cli/tests/test_data_ssa_refactor/array_neq/Nargo.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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
[package] | ||
name = "array_neq" | ||
authors = [""] | ||
compiler_version = "0.1" | ||
|
||
[dependencies] | ||
[dependencies] |
3 changes: 2 additions & 1 deletion
3
crates/nargo_cli/tests/test_data_ssa_refactor/array_sort/Nargo.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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
[package] | ||
name = "array_sort" | ||
authors = [""] | ||
compiler_version = "0.6.0" | ||
|
||
[dependencies] | ||
[dependencies] |
3 changes: 2 additions & 1 deletion
3
crates/nargo_cli/tests/test_data_ssa_refactor/assert/Nargo.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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
[package] | ||
name = "assert" | ||
authors = [""] | ||
compiler_version = "0.1" | ||
|
||
[dependencies] | ||
[dependencies] |
3 changes: 2 additions & 1 deletion
3
crates/nargo_cli/tests/test_data_ssa_refactor/assert_statement/Nargo.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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
[package] | ||
name = "assert_statement" | ||
authors = [""] | ||
compiler_version = "0.1" | ||
|
||
[dependencies] | ||
[dependencies] |
11 changes: 5 additions & 6 deletions
11
crates/nargo_cli/tests/test_data_ssa_refactor/assign_ex/Nargo.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 |
---|---|---|
@@ -1,7 +1,6 @@ | ||
[package] | ||
name = "assign_ex" | ||
authors = [""] | ||
compiler_version = "0.1" | ||
|
||
[package] | ||
authors = [""] | ||
compiler_version = "0.1" | ||
|
||
[dependencies] | ||
|
||
[dependencies] |
3 changes: 2 additions & 1 deletion
3
crates/nargo_cli/tests/test_data_ssa_refactor/bit_and/Nargo.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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
[package] | ||
name = "bit_and" | ||
authors = [""] | ||
compiler_version = "0.1" | ||
|
||
[dependencies] | ||
[dependencies] |
3 changes: 2 additions & 1 deletion
3
crates/nargo_cli/tests/test_data_ssa_refactor/bit_shifts_comptime/Nargo.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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
[package] | ||
name = "bit_shifts_comptime" | ||
authors = [""] | ||
compiler_version = "0.1" | ||
|
||
[dependencies] | ||
[dependencies] |
3 changes: 2 additions & 1 deletion
3
crates/nargo_cli/tests/test_data_ssa_refactor/blackbox_func_simple_call/Nargo.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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
[package] | ||
name = "blackbox_func_simple_call" | ||
authors = [""] | ||
compiler_version = "0.1" | ||
|
||
[dependencies] | ||
[dependencies] |
Oops, something went wrong.