News for hackers. Stuff that matters.
Re:Dependencies Belong in Version Control by codetrotter on Sunday November 26, 2023 @05:06PM (#38425511)
> The issue is not in the fact that you don’t have your dependencies, it’s the fact that you are coming from a world that doesn’t/hasn’t had support for it.

Exactly. With Rust you can commit your Cargo.lock file and you will then be able to rebuild your project with the exact same version of all your deps in the future. No need to commit the deps themselves.

Re:Dependencies Belong in Version Control by kibwen on Sunday November 26, 2023 @05:35PM (#38425745)
And cargo-vendor is available out of the box as well (although it doesn't go quite so far as to add the entire Rust compiler toolchain to your repo): https://doc.rust-lang.org/cargo/commands/cargo-vendor.html
Re:Dependencies Belong in Version Control by reactordev on Sunday November 26, 2023 @09:00PM (#38427241)
Exactly, In case you need to transport your dependencies and build air-gapped (happens) or you need to make some modifications (keep them as patches please, to be re-applied). Not so you can check them all into your repo. You should .gitignore your vendor folder.
Re:Dependencies Belong in Version Control by HumanOstrich on Sunday November 26, 2023 @06:35PM (#38426311)
Of course, just rewrite everything in Rust! It's so easy!
Re:Dependencies Belong in Version Control by reactordev on Sunday November 26, 2023 @08:59PM (#38427235)
That's not what was said. What was said was "This is how rust does it, take note".