We have an existing salesforce 2GP package that follow the default directory layout with components in main/default. I would like to break that up into feature folders, but I am not able to move files for existing components and push that. When I move a file, sfdx sees that as two operations: a delete and an add operation, so it complains that "Cannot delete managed object". Files for objects that have not yet been published can be moved around freely.
Is there some way to rearrange the file layout of the files in a previously published package?
Thanks, Morten
1st or 2nd generation package? Your org is source tracked (you mentioned "push" rather than "deploy")? You might be able to shut the tracking up with
sfdx force:source:legacy:tracking:reset
but it's bit nuclear option. Consider asking on dedicated https://salesforce.stackexchange.com/ too