-
Notifications
You must be signed in to change notification settings - Fork 348
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[#2508] improvement: Remove untracked directories when executing gradle clean #2531
Conversation
@yuqi1129 Should we also add |
@yuqi1129
In .gitignore there exist
|
File |
@@ -114,6 +114,6 @@ tasks { | |||
environment("GRAVITINO_TEST", "true") | |||
} | |||
clean { | |||
delete("$propertiesFile") | |||
delete(file(propertiesFile).getParentFile()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, are you going to remove the directory resources
? I don't believe we need to take any action here. as
line
delete("$propertiesFile")
has done the work.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since the directory is generated by gradle build
https://github.com/datastrato/gravitino/blob/83e0e6b7a0b9dea689c90e34416a195385bbe835/server/build.gradle.kts#L87
currently, gradle clean remove the file inside and leave the empty directory, which is untracked by git.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@yijhenlin |
What changes were proposed in this pull request?
Remove directory
spark-warehouse
when exectue gradle clean in moudle catalog-lakehouse-iceberg.Remove directory
src/main/resources
when execute gradle clean in module server, since which is generated by gradle build.Why are the changes needed?
Fix: #2508
Does this PR introduce any user-facing change?
N/A
How was this patch tested?
./gradlew :catalogs:catalog-lakehouse-iceberg:clean
./gradlew :server:clean