-
-
Notifications
You must be signed in to change notification settings - Fork 21.6k
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
[3.x] Make the project data directory customizable #52556
Conversation
7b86af7
to
55d3db2
Compare
33894ff
to
ede9223
Compare
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.
Approved, subject to changes from my review of the master
PR: #52548 (review)
65e0d92
to
a72b2bd
Compare
a72b2bd
to
d1808f0
Compare
@akien-mga I've addressed the feedback, and tested the changes, all good to go! |
Thanks! |
@akien-mga sorry for catching right after you merged it, but isn't replacing |
Yeah I thought about this while reviewing but as it's a corner case on top of a corner case, I thought it's not worth the trouble to handle better. Can be done if there's a need, it just means more string wrangling for something that shouldn't even be needed in the first place if third-party tooling wasn't broken... |
It's not even an optimization in this case but can cause trouble, so I don't know if it's worth to replace It's not only the case of thirdparty tooling, we can name directories manually and cause problems to ourselves unaware of leaky solution above. |
I don't think it's an optimization, it's needed if you change the project data path. Previous code worked because everything starting with
This leaky solution is made for third-party tooling. You shouldn't use it if you don't have tooling that requires it. It's an advanced option, provided as is, without guaranteed (for example it doesn't work with Mono which can't know about it). |
I'm talking only about the |
|
That seems possible indeed, should be fixed.
Well I assumed that it was changed for a reason to handle subpaths of the project directory. But if you can confirm that it's not needed, then yes, there's no reason to use a more computationally intensive String method over an equality check. |
I've just confirmed that:
|
If we want this to be fool-proof, it needs much better validation. The |
@Listwon @akien-mga Thanks for the feedback! I'm leaning toward restricting the option to just using (or not) a hidden directory:
That'd accomplish the initial goal while removing a lot of the raised concerns. In addition, it'd make support by tools easier as they would only have a couple options to cycle through. @Listwon The use of An improvement here would be to use The update to |
@akien-mga @Listwon See #53779 for an implementation of my above suggestions. |
This PR makes the default project data directory (
.import
) customizable.This is useful on platforms where certain directory patterns are disallowed (e.g: some Android build tools disallow hidden directories in the generated APK).
Bugsquad edit:
3.x
version of #52548.