-
Notifications
You must be signed in to change notification settings - Fork 753
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #42717 from Thevakumar-Luheerathan/fix-ballerina-l…
…ang-iss-42106 Warn about corruption in Dependencies.toml.
- Loading branch information
Showing
10 changed files
with
168 additions
and
128 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
6 changes: 6 additions & 0 deletions
6
...li/src/test/resources/test-resources/command-outputs/unix/corrupted-dependencies-toml.txt
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 @@ | ||
Compiling source | ||
luheerathan/test1:0.1.0 | ||
WARNING [Dependencies.toml:(6:1,18:1)] Detected corrupted Dependencies.toml file. Dependencies will be updated to the latest versions. | ||
|
||
Generating executable | ||
target/bin/test1.jar |
6 changes: 6 additions & 0 deletions
6
...src/test/resources/test-resources/command-outputs/windows/corrupted-dependencies-toml.txt
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 @@ | ||
Compiling source | ||
luheerathan/test1:0.1.0 | ||
WARNING [Dependencies.toml:(6:1,18:1)] Detected corrupted Dependencies.toml file. Dependencies will be updated to the latest versions. | ||
|
||
Generating executable | ||
target/bin/test1.jar |
8 changes: 8 additions & 0 deletions
8
...rina-cli/src/test/resources/test-resources/corrupted-dependecies-toml-file/Ballerina.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,8 @@ | ||
[package] | ||
org = "luheerathan" | ||
name = "test1" | ||
version = "0.1.0" | ||
distribution = "2201.9.0" | ||
|
||
[build-options] | ||
observabilityIncluded = true |
17 changes: 17 additions & 0 deletions
17
...test/resources/test-resources/corrupted-dependecies-toml-file/Dependencies-corrected.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,17 @@ | ||
# AUTO-GENERATED FILE. DO NOT MODIFY. | ||
|
||
# This file is auto-generated by Ballerina for managing dependency versions. | ||
# It should not be modified by hand. | ||
|
||
[ballerina] | ||
dependencies-toml-version = "2" | ||
distribution-version = "DIST_VERSION" | ||
|
||
[[package]] | ||
org = "luheerathan" | ||
name = "test1" | ||
version = "0.1.0" | ||
modules = [ | ||
{org = "luheerathan", packageName = "test1", moduleName = "test1"} | ||
] | ||
|
17 changes: 17 additions & 0 deletions
17
...c/test/resources/test-resources/corrupted-dependecies-toml-file/Dependencies-corrupt.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,17 @@ | ||
# AUTO-GENERATED FILE. DO NOT MODIFY. | ||
|
||
# This file is auto-generated by Ballerina for managing dependency versions. | ||
# It should not be modified by hand. | ||
|
||
[ballerina] | ||
dependencies-toml-version = "2" | ||
distribution-version = "2201" | ||
|
||
[[package]] | ||
org = "luheerathan" | ||
name = "test1" | ||
version = "0.1.0" | ||
modules = [ | ||
{org = "luheerathan", packageName = "test1", moduleName = "test1"} | ||
] | ||
|
3 changes: 3 additions & 0 deletions
3
cli/ballerina-cli/src/test/resources/test-resources/corrupted-dependecies-toml-file/main.bal
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 @@ | ||
public function main() { | ||
|
||
} |
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
Oops, something went wrong.