21 ms·
That's the dream of containers. Arguably this is the "reality" of Nix. But the reality of containers is that if a layer gets invalidated, you need to refetch pa
by tolmasky 4y ago
That's the dream of containers. Arguably this is the "reality" of Nix. But the reality of containers is that if a layer gets invalidated, you need to refetch packages that are lower down. If the Python 2 versions (or Python 2 itself) is removed, then you can't "just" surgically make the change you want in the container without affecting the rest of the system (this is a major failing of Docker, but the world we live in). Now, you can start digging around in the container image and trying to do "layer surgery" yourself by editing the tars, but I would also consider that a less than ideal outcome of these changes.
- edaemon 4y agoHow would Python 2 end up removed from a container image?
- sheenobu 4y agoIf someone builds a container that is designed like this: FROM debian RUN do-x RUN install python2 and then someone changes do-x, if I understand, the layers below it get invalidated and all of a sudden install python2 fails. This is very bad design but very easy to replicate.
- hannasanarion 4y agoOkay, but surely my poorly written dockerfile that grabs the wrong images and runs broken code is not Debian's or python's problem? Older versions of debian that still support python2 will theoritically be around forever, and any codebase that absolutely needs them should always work. (though I contend that, given that we've had 15 YEARS of warning that this was coming, such instances should be vanishingly rare and not under active development)
- blooalien 4y ago> … "given that we've had 15 YEARS of warning that this was coming" … This right here is the part that I'm still having troubles wrapping my brain around. People still stressing about Python 2 "going away" (it's gone folks; accept it) despite the fact that there's been well beyond a decade of advance warning, and Python 2 having been officially EOL ages ago now.
- still_grokking 4y agoPeople won't move until heavens fall down on them. And than they will start complaining that it's other peoples fault that they didn't move.
- cge 4y agoNix is also now intentionally breaking any packages that use Python 2, in my experience, so unless you're using a specific, older Nix channel, you're unlikely to have much success with anything that needs Python 2.