-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Avoid trying to set permissions on the cache directory on windows #18867
Avoid trying to set permissions on the cache directory on windows #18867
Conversation
...nsions/vertx-core/runtime/src/main/java/io/quarkus/vertx/core/runtime/VertxCoreRecorder.java
Outdated
Show resolved
Hide resolved
FWIW, WSL2 Ubuntu reports |
I don't have Windows with WSL around to double check this :/ |
7b51196
to
4a52216
Compare
if (!os.contains("windows")) { | ||
// Do not execute the following on windows. | ||
if (!(tmp.setReadable(true, false) && tmp.setWritable(true, false))) { | ||
LOGGER.warnf("Unable to make the Vert.x cache directory (%s) world readable and writable", |
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.
Unrelated question but why are we trying to make it world writable? Shouldn't it be only writable by the current user? Am I missing something?
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.
There is a structure. The first level is world writable as multiple Quarkus app started by multiple users will write into it. The nested level is limited to the user.
Fix #16895
@rsvoboda This is the approach not trying to set the permission on windows. However, not sure it works on Windows using the WSL emulation.