hkdb / app

A cross-platform package management assistant with super powers!
https://hkdb.github.io/app/
Apache License 2.0
55 stars 2 forks source link

Restore: brew fix #8

Closed RichardFevrier closed 3 weeks ago

RichardFevrier commented 1 month ago

I was trying to restore my brew packages with this config:

{
    "packages": "bat bottom chezmoi eza fd fzf git-lfs golangci-lint micro neofetch pre-commit streamlink"
}

Doing so resulted with the following error:

Error: No formulae found for bat bottom chezmoi eza fd fzf git-lfs golangci-lint micro neofetch pre-commit streamlink.

It seems that passing all packages with one string does not work. I think I've find the cleanest/shortest way to pass a dynamic number of packages name to the cmd.

It probably does apply to all the rest of the package managers but I did only test brew.

RichardFevrier commented 1 month ago

As I expected this fix is necessary for other managers, I've just tested with flatpak and the same error appeared. Force pushed with the fix for flatpak.

hkdb commented 3 weeks ago

Thank you for doing this! I admit that I haven't tested restore as much as I should beyond apt. We can probably progressively migrate all package managers to do it your way... It seems like the more proper/safe way to do it.