Macchina-CLI / libmacchina

A library providing access to all sorts of system information.
https://crates.io/crates/libmacchina
MIT License
68 stars 20 forks source link

Cargo packages are not counted is $CARGO_HOME isn't set #73

Closed laurentlbm closed 3 years ago

laurentlbm commented 3 years ago

$CARGO_HOME is used to override the location of the Cargo directory, but it is not mandatory. By default, Cargo uses in $HOME/.cargo.

grtcdr commented 3 years ago

Hmm, it might not be set as a global env variable but I'm pretty sure cargo sets it at runtime or something...

grtcdr commented 3 years ago

I do agree though, for a long time my cargo packages never appeared although they did appear on others' machines.

I'll use what you suggested instead.

laurentlbm commented 3 years ago

Hmm, it might not be set as a global env variable but I'm pretty sure cargo sets it at runtime or something...

On my 2 machines (Arch and Fedora), it isn't set...

grtcdr commented 3 years ago

Fixed with https://github.com/Macchina-CLI/libmacchina/commit/1eba1b91153b07f734b898936651c49fd4eb4797 or v2.1.6

2021-10-05T14:14:39,974818922+01:00