Skip to content
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

[CMS PR 25559] Add list of folders to keep on update #69

Conversation

richard67
Copy link

Pull Request for joomla#25559 .

Summary of Changes

Make sure we don't delete certain folders on update even if we deleted everything inside them, as long as we don't have a "Folder::DeleteIfEmpty" in the framework's filesystem package.

Currently these are the /bin and /libraries/vendor/bin folders, see also joomla#34289 .

Testing Instructions

Use your tool with and without this PR and compare the difference between the results.

The only difference is that the 2 folders mentioned above are missing in the list of folders to be deleted.

@richard67 richard67 requested a review from wilsonge as a code owner June 27, 2021 11:52
@wilsonge
Copy link
Owner

wilsonge commented Jun 27, 2021

I know i merged the original PR. but i guess I missed it when I merged. JROOT/libraries/vendor/bin can be removed safely as that's managed by composer (anything in libraries/vendor is composer managed). JROOT/bin shouldn't be as you say because it might have admin loaded scripts. It's what I tried to say in my comment here: joomla#34289 (comment)

@richard67
Copy link
Author

Then it seems you really had missed that discussion. Will provide fix here soon ... and for the CMS I would have to add it back to script.php.

@richard67
Copy link
Author

Ok, fixed.

@richard67
Copy link
Author

It's what I tried to say in my comment here: joomla#34289 (comment)

Ah, now I see: You commented, but it was not clear to me that it means that the libraries/vendor/bin should be reverted.

And at the end you merged it.

@richard67
Copy link
Author

CMS PR see joomla#34638 .

@wilsonge wilsonge merged commit dbaac21 into wilsonge:deleted_file_rework Jul 2, 2021
@richard67 richard67 deleted the 4.0-dev-wilsonge-deleted-files-rework-mod-2021-06-26_3 branch July 2, 2021 23:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants