this post was submitted on 01 Aug 2026
120 points (99.2% liked)

Programmer Humor

43189 readers
5 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 7 years ago
MODERATORS
 

I was just editing my Dockerfile and suddenly IntelliJ showed me the message "No" without any context.

you are viewing a single comment's thread
view the rest of the comments
[โ€“] AnnaFrankfurter@lemmy.ml 1 points 2 weeks ago (1 children)

Why not put all dependencies and all with versions. I do that

[โ€“] bamboo@lemmy.blahaj.zone 4 points 2 weeks ago

Well if the requirements.txt is pinned to a specific version of a dependency of a dependency, you might not know or really care why that's set. But then this becomes a nightmare and dependency hell laterif you want a newer version of some package, and that newer version requires a bunch of newer packages and loses the others. At that point you probably will toss your old file and start a new one from scratch piecing together all the requirements with like pip freeze in a new virtual environment.

Sure you could omit the versions, but then everytime you deploy, you don't know what you're going to get and a deployment today would be very different next week with a whole bunch of different versions of dependencies.