Duplicate library names

A question from general curiosity.

I found 2 libraries that have identically named header files, and indeed their names are identical - PlatformIO Registry and PlatformIO Registry. Out of curiosity I installed both (either globally or locally for the project) and tried to use the later one - no joy. No matter in what order installed, the library with lowest ID is picked by compiler if more than one shares the name. Everything works fine if one is installed locally for the project and another is installed globally (local is picked up).

So I guess you can’t have more than one library with the same name in environment, either both installed globally or locally for the project?

Take a look at Library Dependency Finder (LDF) — PlatformIO latest documentation