Rather than trying to force macOS to support package management, developers should be containerizing their environments where possible with docker/podman.
The best package manager for macOS is Docker with an Alpine container. Not ruby scripts with git as a backend and questionable permissions.