Open gayaldassanayake opened 5 months ago
@gayaldassanayake, With my concern, from a design perspective, there is a dependency between the target and generated directories, particularly with the package build commands, shouldn't we validate whether the target directory is available and ensure the presence of the generated folder, and vice versa, before continuing the process?
Description: In openapi automate client generation, if the code is generated once with
bal build
, that code is deleted andbal build
run again, the code is not getting generated again. However if we delete the target dir (which contains a cache for openapi tool), the generation works fine.Steps to reproduce:
bal build
. This will create bothtarget
dir and thegenerated
dir.generated
dirbal build
Affected Versions: 2201.9.0
OS, DB, other environment details and versions: MacOS
Related Issues (optional):
Suggested Labels (optional):
Suggested Assignees (optional):