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

  • mickkc@lmy.ndu.wtfOP
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    19 hours ago

    Ohhh now I get it. It’s basically like package.json and package-lock.json in node, but for Python.

    It’s a bit strange to me that this isn’t the default in Python…

    • bamboo@lemmy.blahaj.zone
      link
      fedilink
      English
      arrow-up
      2
      ·
      18 hours ago

      Yes exactly, like if I know my app needs the requests library, I will just put that in requirements.in but after compile requirements.txt will include the exact version of requests and every version of each dependency. So that every time pip install is run, all dependencies are always the same despite what happens upstream