4 ms·
Is that not the case here? I'm not sure if pip has a mechanism similar to deb's pre/post-install hooks. > Furthermore, code is often ran in (sort of) sandboxed
by lxgr 2y ago
Is that not the case here? I'm not sure if pip has a mechanism similar to deb's pre/post-install hooks.
> Furthermore, code is often ran in (sort of) sandboxed environments like Docker during development, in which case arbitrary code on runtime is less dangerous than arbitrary code on install time.
Wouldn't the package install then also happen in a Docker container anyway, negating the problem? Or how would you install a package to your host environment and then use it from within a container?
- plonk 2y agoSounds like a good reason to generalize dev containers. At least both dev and deployment environment will be somewhat isolated. And the worst you can do from the dev container is commit bad code, which can be seen in code review.