▲ 324 ▼ Package managers be like (linux.community) submitted 2 years ago by ExLisper@linux.community to c/programmerhumor@lemmy.ml 159 comments fedilink hide all child comments Sorry Python but it is what it is.
[–] bjorney@lemmy.ca -2 points 2 years ago (2 children) How is it not a lock file? package.json doesn't contain the exact version number of all downstream dependencies, this does permalink fedilink source parent hideshow 4 child comments replies: [–] NBJack@reddthat.com 2 points 2 years ago More context: https://www.langton.cloud/python-pip-requirements-txt-lock-file/ permalink fedilink source parent [–] gornius@lemmy.world 0 points 2 years ago (1 child) Lockfile contains exact state of the npm-managed code, making it reproducible exactly the same every time. For example without lockfile in your package.json you can have version 5.2.x. In your working directory, you use 5.2.1, however on repo, 5.2.2 has appeared, matching your criteria. Now let's say a new bug appeared in 5.2.2. Now you have mismatched vendor code, that can make your code behave differently on your machine, and your coworker's machine, making you hunt for bug that wasn't even on your side. Lockfile prevents that by saving an actual state of vendor code. permalink fedilink source parent hideshow 2 child comments replies: [–] bjorney@lemmy.ca 1 point 2 years ago Yes, which is EXACTLY like a pip freeze'd requirements.txt, storing the exact version of every package and downstream dependency you have installed permalink fedilink source parent
[–] NBJack@reddthat.com 2 points 2 years ago More context: https://www.langton.cloud/python-pip-requirements-txt-lock-file/ permalink fedilink source parent
[–] gornius@lemmy.world 0 points 2 years ago (1 child) Lockfile contains exact state of the npm-managed code, making it reproducible exactly the same every time. For example without lockfile in your package.json you can have version 5.2.x. In your working directory, you use 5.2.1, however on repo, 5.2.2 has appeared, matching your criteria. Now let's say a new bug appeared in 5.2.2. Now you have mismatched vendor code, that can make your code behave differently on your machine, and your coworker's machine, making you hunt for bug that wasn't even on your side. Lockfile prevents that by saving an actual state of vendor code. permalink fedilink source parent hideshow 2 child comments replies: [–] bjorney@lemmy.ca 1 point 2 years ago Yes, which is EXACTLY like a pip freeze'd requirements.txt, storing the exact version of every package and downstream dependency you have installed permalink fedilink source parent
[–] bjorney@lemmy.ca 1 point 2 years ago Yes, which is EXACTLY like a pip freeze'd requirements.txt, storing the exact version of every package and downstream dependency you have installed permalink fedilink source parent