I never understood the need for modules and versioning in the first place. You can do censoring by forking your dependency's repo and keeping it the way you want it.
Either way, this is a terrible way to do it. I've lived it. It results in libraries that don't work unless you freeze to exact git hashes of dependencies and never evolve because it's too painful.