-
Notifications
You must be signed in to change notification settings - Fork 743
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix bal pack crashes when [[dependency]] section is missing in the CompilerPlugin.toml file #43426
Conversation
…mpilerPlugin.toml file
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #43426 +/- ##
=========================================
Coverage ? 77.53%
Complexity ? 58717
=========================================
Files ? 3447
Lines ? 219689
Branches ? 28937
=========================================
Hits ? 170335
Misses ? 39934
Partials ? 9420 ☔ View full report in Codecov by Sentry. |
@@ -138,32 +138,28 @@ protected void addCompilerPlugin(ZipOutputStream balaOutputStream) throws IOExce | |||
List<String> compilerPluginLibPaths = new ArrayList<>(); | |||
List<String> compilerPluginDependencies = this.compilerPluginToml.get().getCompilerPluginDependencies(); | |||
|
|||
if (compilerPluginDependencies.get(0) == null) { | |||
if (compilerPluginDependencies.isEmpty()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Shadow-Devil The fix is working fine now we get the below error message.
Shall we add a negative test case for this?
We have a few negative test cases in io.ballerina.projects.test.plugins.CompilerPluginNegativeTests
. Can you please add one for this fix?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Purpose
Fixes #41418 and #42120
Approach
Samples
Remarks
Check List