Skip to content

Commit

Permalink
Merge pull request #41701 from Thevakumar-Luheerathan/fix-ballerina-l…
Browse files Browse the repository at this point in the history
…ang-iss-41359

[master] Remove outdated local repo dependency when there is a new push
  • Loading branch information
azinneera authored Nov 23, 2023
2 parents 1c44405 + 21a32d4 commit 003242d
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -379,11 +379,13 @@ private void pushBalaToCustomRepo(Path balaFilePath) {

Path balaDestPath = repoPath.resolve(ProjectConstants.BALA_DIR_NAME)
.resolve(org).resolve(packageName).resolve(version).resolve(platform);
Path balaVersionPath = repoPath.resolve(ProjectConstants.BALA_DIR_NAME)
.resolve(org).resolve(packageName).resolve(version);
Path balaCachesPath = repoPath.resolve(ProjectConstants.CACHES_DIR_NAME + "-" + ballerinaShortVersion)
.resolve(org).resolve(packageName).resolve(version);
try {
if (Files.exists(balaDestPath)) {
ProjectUtils.deleteDirectory(balaDestPath);
if (Files.exists(balaVersionPath)) {
ProjectUtils.deleteDirectory(balaVersionPath);
}
if (Files.exists(balaCachesPath)) {
ProjectUtils.deleteDirectory(balaCachesPath);
Expand Down

0 comments on commit 003242d

Please sign in to comment.