News for hackers. Stuff that matters.
Re:Difftastic: A diff that understands syntax by YetAnotherNick on Tuesday March 29, 2022 @08:40AM (#30841737)
Used `cargo install difftastic`? Finished in a minute for me.
Re:Difftastic: A diff that understands syntax by lopatin on Tuesday March 29, 2022 @08:51AM (#30841829)
Build errors for me. Apparently I'm on some nightly build of cargo, but I need 2021 version. The pain begins...

Edit: Reinstalling Cargo worked!

Re:Difftastic: A diff that understands syntax by skywal_l on Tuesday March 29, 2022 @09:26AM (#30842237)
With rustup, it's pretty easy to update/change your cargo version.
Re:Difftastic: A diff that understands syntax by loxias on Tuesday March 29, 2022 @09:37AM (#30842360)
How did you do it? When I tried to rebuild cargo I got build errors. I'm starting to suspect the only way to run this tool is make a chroot tracking sid or something....
Re:Difftastic: A diff that understands syntax by lopatin on Tuesday March 29, 2022 @09:59AM (#30842605)
I just followed the installation instructions here: https://doc.rust-lang.org/cargo/getting-started/installation...

It'll confirm that you want to install it, because it's already installed I think, and I just selected 1. for Yes.

Re:Difftastic: A diff that understands syntax by loxias on Tuesday March 29, 2022 @10:21AM (#30842868)
> curl https://sh.rustup.rs -sSf | sh

hard pass :)

Re:Difftastic: A diff that understands syntax by adwn on Tuesday March 29, 2022 @11:50AM (#30844157)
> hard pass

Why? You're willing to run some random open source project, but you're not willing to run the official Rust installation script?

Re:Difftastic: A diff that understands syntax by chlorion on Tuesday March 29, 2022 @11:04PM (#30851141)
I feel the same way, I am just not willing to pipe curl into a shell blindly.

Even if this specific instance of curl'ing into sh is safe, or if I download and then run it, it's still extremely poor practice and gives me serious doubts about the developers and their security practices in general.

I also do not like when every project decides to poorly reimplement the package manager. If every software used it's own package manager my system would be a complete mess with dozens of different package managers fighting each other and it would be a total nightmare to update the system or manage non-trivial dependency chains when installing something new.

Rust is one of my favorite languages but this is definitely my least favorite aspect of it all. It really feels like the developers "optimized" for systems with no package manager.

Re:Difftastic: A diff that understands syntax by a_passable_dev on Tuesday March 29, 2022 @03:05PM (#30846961)
Out of curiosity, what would be an acceptable way for the developers to provide a quick way for users to get up and running?

A get started guide with all the required commands easily copy-pastable? (A popular option these days) Something else?

I don’t mean to be critical, I’m simply curious.

Re:Difftastic: A diff that understands syntax by DangitBobby on Tuesday March 29, 2022 @07:13PM (#30849544)
You could always download it first and eyeball it before running it.
Re:Difftastic: A diff that understands syntax by loxias on Tuesday March 29, 2022 @08:52AM (#30841838)
Sure, but first I had to figure out wtf "cargo" is. :P

Also, `cargo install difftastic` AIUI pulls it from a central location, if I'm gonna poke at software for the first time, I enjoy building it myself first, so I can get my hands dirty in the source. :)

EDIT: Also, the build fails. :(

"error: unexpected token: `include_str` --> /home/loxias/.cargo/registry/src/github.com-1ecc6299db9ec823/radix-heap-0.4.2/src/lib.rs:2:10 | 2 | #![doc = include_str!("../README.md")] | ^^^^^^^^^^^

error: aborting due to previous error

error: could not compile `radix-heap`.

sad trombone

Re:Difftastic: A diff that understands syntax by Wilfred on Tuesday March 29, 2022 @04:14PM (#30847794)
This looks like you're using a version of Rust older than the minimum required (1.56).