Skip to content

Commit e983d7c

Browse files
committed
Ensure metadata files belongs to project
1 parent 438ae1d commit e983d7c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/tck-build-logic/src/main/java/org/graalvm/internal/tck/ContributionTask.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -522,6 +522,7 @@ private void removeEmptyConfigFiles() throws IOException {
522522
}
523523

524524
private void removeConfigFile(Path path, CONFIG_FILES file, List<CONFIG_FILES> remainingFiles) {
525+
ensureFileBelongsToProject(path);
525526
boolean canDelete = InteractiveTaskUtils.askForDeletePermission(path);
526527
if (canDelete) {
527528
InteractiveTaskUtils.printUserInfo("Removing empty: " + file.get());

0 commit comments

Comments
 (0)