tclementdev

Results 16 comments of tclementdev

Could the information provide actual details about how the score is calculated? There are product scores that are puzzling me right now even though I know they are based on...

I think right now, we have something like this: ``` for criteria in (nutriscore, eco, nova, etc...) compatibility_score = compatibility_score + criteria.score * criteria.weight end ``` Maybe we need something...

I'm confused as to what you mean here. The [documentation](https://github.com/pkgxdev/pkgm) and `pkgm --help` both encourage to use `sudo pkgm install`. Is there another way? Not using `sudo` will not install...

It worked the last time I tried on macOS. Seems like this is a bug/regression that is specific to Linux/Fedora.

In case that helps, I edited my copy of `/root/.pkgx/pkgx.sh/pkgm/v.0.11.1/bin/pkgm` and added a log: function get_pkgx() { for (const path of Deno.env.get("PATH")!.split(":")) { console.log(path) And it seems the path list...

Printing the root paths show the pkgx bin directories are not there: $ sudo printenv PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/var/lib/snapd/snap/bin So I assume they are added by the sudo called pkgx instance before...

Ok, I think it comes down to this. On macOS: ``` $ sudo printenv HOME /Users/thomas ``` On Fedora: ``` $ sudo printenv HOME /root ``` I think on Linux,...

I added this near the top of `get_pkgx_dir()` in [config.rs](https://github.com/pkgxdev/pkgx/blob/main/crates/lib/src/config.rs#L64): ``` if let Ok(path) = env::var("SUDO_HOME") { let path = PathBuf::from(path); if path.is_absolute() { return Ok(path); } } ``` This...

I think we can probably fall back to a regular copy if the hard link fails. Then it finally works, `sudo pkgm install fish` installed fish in `/usr/local/bin/`. I'll create...