Plugin namespaces?

I recently found that if the ID of a locally created custom plugin (not intended for publication) happens to match an ID of a published community plugin, then the local plugin is “updated” i.e. overwritten with this community plugin on plugins update.

To me, this was unexpected, as my plugin’s manifest contains no external URLs.

OK, this is not technically a bug, as the plugin dev guide says in Step 4: “Change id to a unique identifier, such as "hello-world".” and the ID is not unique here. However, this behavior presupposes the global uniqueness of IDs while they are not GUIDs. And the consequence is an irreversible file overwrite.

This problem could be solved with a naming convention, but such a convetion should be established somehow. E.g. what if plugins with IDs starting with ‘local:’ would not be allowed to be published, but would not require to have a globally unique name?

I do not pretend my proposed solution is the best. Maybe, a better solution is possible. But the problem exists, nevertheless.

in the meantime a practical workaround is to give private plugins a personal prefix right from the start, something like your initials or a domain you own in front of the name. the id is not just a label, its also the folder name and the key obsidian stores the plugin settings under, so changing it later is a pain and you can lose your config. a reserved local prefix would still be cleaner though, and ideally the updater would check a plugin was actually installed from the community list before replacing it.