[Improvement]: Reuse the package resolution and bal tool utility methods in Build tool logic #42348
Labels
Area/ProjectAPI
Team/DevTools
Ballerina Developer Tooling ( CLI, Test FW, Package Management, OpenAPI, APIDocs )
Type/Improvement
Description
There are utility functions in the
RunBuildToolsTask
,BuildToolResolution
, andBuildToolUtility
classes that are similar to the already existing logic.Describe your problem(s)
Code duplication can cause issues in the future. However, the reusing might not be straight-forward since there are minor changes in the logic.
Describe your solution(s)
We need to reuse the same code as much as possible. Methods like
getSticky
,pullLocallyUnavailableTools
,isToolLocallyAvailable
,getPackageLockingMode
.Related area
-> Compilation
Related issue(s) (optional)
No response
Suggested label(s) (optional)
No response
Suggested assignee(s) (optional)
No response
The text was updated successfully, but these errors were encountered: