Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Add option to choose preferred AUR helper #765

Closed
yochananmarqos opened this issue Oct 10, 2021 · 7 comments
Closed

Add option to choose preferred AUR helper #765

yochananmarqos opened this issue Oct 10, 2021 · 7 comments

Comments

@yochananmarqos
Copy link

I just tested while Yay and Paru were installed and it used Yay by default. I thought when you first added Paru support it was the other way around. Either way, it would be nice to be able to have both installed and choose between them.

@r-darwish
Copy link
Owner

I don't strongly object, but what's the point in having both of them? If you're happy with one wouldn't it be simple just to uninstall the other? It's not like they fill different goals.

@yochananmarqos
Copy link
Author

Sounds logical, sure. However, I like to test both. It's convenient to have them both installed rather than having to uninstall and reinstall.

There are things Paru can do that Yay cannot as well.

@r-darwish
Copy link
Owner

Fixed in #776

@yochananmarqos
Copy link
Author

What's the configuration option? I don't see anything new in the man page or example config.

@MCOfficer
Copy link
Contributor

What's the configuration option? I don't see anything new in the man page or example config.

Judging by the source code in #776, linux.arch_package_manager, so something like this:

[linux]
# Arguments to pass yay (or paru) when updating packages
#yay_arguments = "--nodevel"
#trizen_arguments = "--devel"
arch_package_manager = "paru"
...

@yochananmarqos
Copy link
Author

The AUR helpers have to be capitalized, turns out:

 2021-10-26T18:25:52.019Z ERROR topgrade::config > Failed to deserialize /home/yochanan/.config/topgrade.toml
 2021-10-26T18:25:52.019Z ERROR topgrade::config > failed to load configuration: unknown variant `yay`, expected one of `Autodetect`, `Trizen`, `Paru`, `Yay`, `Pacman` for key `linux.arch_package_manager` at line 95 column 1

@MCOfficer
Copy link
Contributor

The AUR helpers have to be capitalized, turns out:

 2021-10-26T18:25:52.019Z ERROR topgrade::config > Failed to deserialize /home/yochanan/.config/topgrade.toml
 2021-10-26T18:25:52.019Z ERROR topgrade::config > failed to load configuration: unknown variant `yay`, expected one of `Autodetect`, `Trizen`, `Paru`, `Yay`, `Pacman` for key `linux.arch_package_manager` at line 95 column 1

Good catch, i've filed #784 for that and the config example.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants