Skip to content

Commit

Permalink
Update jar names to fix conflicts with version numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
yogyagamage authored Jul 21, 2023
1 parent 3fa2aa4 commit a2a9eec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/reproducer/ResultManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ private UpdatedFileType extractDependencies(BreakingUpdate bu, String postContai
byte[] fileContent = dependencyStream.readAllBytes();
Files.write(dir.resolve(fileName), fileContent);
// Push the saved old jar/pom file to the cache repo.
String jarName = "%s_%s_%s__prev.%s".formatted(bu.updatedDependency.dependencyGroupID, bu.updatedDependency
String jarName = "%s__%s__%s___prev.%s".formatted(bu.updatedDependency.dependencyGroupID, bu.updatedDependency
.dependencyArtifactID, bu.updatedDependency.previousVersion, type);
pushFiles(bu.breakingCommit, jarName, fileContent);
} catch (NotFoundException e) {
Expand Down Expand Up @@ -295,7 +295,7 @@ private UpdatedFileType extractDependencies(BreakingUpdate bu, String postContai
byte[] fileContent = dependencyStream.readAllBytes();
Path filePath = Files.write(dir.resolve(fileName), fileContent);
// Push the saved new jar/pom file to the cache repo.
String jarName = "%s_%s_%s__new.%s".formatted(bu.updatedDependency.dependencyGroupID, bu.updatedDependency
String jarName = "%s__%s__%s___new.%s".formatted(bu.updatedDependency.dependencyGroupID, bu.updatedDependency
.dependencyArtifactID, bu.updatedDependency.newVersion, type);
pushFiles(bu.breakingCommit, jarName, fileContent);
return updateType;
Expand Down

0 comments on commit a2a9eec

Please sign in to comment.