Huh? What does this have to do with anything? It looks like you just moved the goalposts, hard.
I propose solving this problem by storing the necessary environment components in VCS. This eliminates the vast majority of environment setup issues.
Many many many companies do exactly what I propose. It works great. The primary reason that more projects don’t use this approach, imho, is because Git doesn’t have the necessary features. Other VCS tools do, Git does not. I think it would be good to have a popular VCS tool, Git or otherwise, with this capability.
> You don’t have enough disk space.
Sure I do. Downloading dependencies from a package manager or downloading dependencies from VCS requires the exact same amount of disk space.
The nice thing about VCS is it works for all platforms, for all languages, for all dependencies.
You simply can’t just download a zip of master, with all of the dependencies, disconnect from the internet, and hit build. You don’t have enough disk space. I’d LOVE to see you try doing that on an embedded environment.