News for hackers. Stuff that matters.
Re:Dependencies Belong in Version Control by forrestthewoods on Sunday November 26, 2023 @08:01PM (#38426890)
This is an argument that Git has serious limitation (it does). It's not an argument against the theory of dependencies in VCS.
Re:Dependencies Belong in Version Control by pinkgolem on Sunday November 26, 2023 @08:53PM (#38427199)
1/2 are pretty universal, and would make any VCS which includes dependencys basically look like any other package manager today.

Every other existing VCS btw to my knowledge has the same limits

Re:Dependencies Belong in Version Control by reactordev on Sunday November 26, 2023 @08:56PM (#38427210)
Here's an argument for not having your dependencies in your repo as hard source. Any CVE's will need to be patched by you or you'll need to check-in a huge diff tree for the latest version patched and then figure out of you've made modifications to your local blob of libidiot that you now have to rectify.

If you want to use git for version control of dependencies, for the love of god use git submodules. It's what they were designed for. If you want to check-in single file stb_lib fine but checking in MESA into your source tree is just plain stupid.

Re:Dependencies Belong in Version Control by forrestthewoods on Sunday November 26, 2023 @09:32PM (#38427423)
Git Submodules are a well known source of pain and suffering.

For CVEs, if you use docker images you need to rebuild and redeploy all images which isn’t particularly different from updating committed code.

If you’ve modified a library you have to merge changes any which way. So not sure what difference it makes.

Checking in GPU drivers probably doesn’t make sense. That’s closer to Docker territory at least. Haven’t run into a case where I’ve wanted/needed to do that so no strong opinion.

Re:Dependencies Belong in Version Control by reactordev on Monday November 27, 2023 @04:18AM (#38430071)
Git submodules work flawlessly for me because I use them correctly. So YMMV. There’s plenty of documentation out there on how to do a git clone —recursive or git submodule update —init —recursive

Never edit the code in the submodules, edit them in the parent repos where they properly live. Your repo is for your code only. Don’t go wandering:editing in those submodules.