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

Can't install from AUR, neither compile on Arch #100

Closed
woohgit opened this issue Dec 13, 2018 · 8 comments
Closed

Can't install from AUR, neither compile on Arch #100

woohgit opened this issue Dec 13, 2018 · 8 comments

Comments

@woohgit
Copy link
Contributor

woohgit commented Dec 13, 2018

error: failed to parse manifest at `/home/wooh/repos/topgrade/Cargo.toml`

Caused by:
  feature `rename-dependency` is required

this Cargo does not support nightly features, but if you
switch to nightly channel you can add
`cargo-features = ["rename-dependency"]` to enable this feature
@r-darwish
Copy link
Owner

r-darwish commented Dec 14, 2018

Are you using the most up to date version of Rust? (1.31)

@woohgit
Copy link
Contributor Author

woohgit commented Dec 14, 2018

No, but I just tried to use upgrade topgrade via pacman but it failed. Probably because the latest rust version is 1.30 even in AUR.

@r-darwish
Copy link
Owner

The latest rust is not 1.31. Is your mirror up to date?

@woohgit
Copy link
Contributor Author

woohgit commented Dec 16, 2018

Yes my mirrors are up-to-date. I'm not literally using Arch, but Manjaro. It means I get updates in 5-7 days. Although topgrade is in AUR and it is used by many other distributions than Arch.

But I get it, I just need to wait a bit more. Wonder if distributing via binary would be a better idea than compiling on the host itself.

@r-darwish
Copy link
Owner

I didn't take into account Manjaro. I myself use the binary for all of my machines. It saves me the trouble of compiling and has a self-update feature.

@woohgit
Copy link
Contributor Author

woohgit commented Dec 16, 2018

I missed the binary option. I was using the AUR one. What if you change the AUR to provide the binary instead of the compile on host option?

@r-darwish
Copy link
Owner

I thought about creating a topgrade-bin AUR package, but the binaries that I ship contain a self-update feature, which doesn't make sense for a package, so I'll have to publish even more binaries in order to have some for topgrade-bin.

The self-update feature has an advantage that Topgrade will respawn itself when a new version is updated, which is something you can't achieve in AUR, so I highliy recommend using the binary files that I ship. I personally drop them into ~/.local/bin. I use that method in macOS, FreeBSD, Windows and various Linux distributions. It works fine in all of them.

@woohgit
Copy link
Contributor Author

woohgit commented Dec 17, 2018

Yeah I changed my ansible playbook to use the binary option now. I pretty much missed that option. Thanks. 👍

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

2 participants