-
Notifications
You must be signed in to change notification settings - Fork 13
reference to target crate missing? #40
Comments
No it should reference itself. This appears to be a regression. |
@cardoe do you think it would be good to add |
@leonardohn - tested both ebuilds. Zoxoide works and dust had a mismatch in the name (tar file extracts to dust and not du-dust if i rename the folder and ebuild to just 'dust' it works. |
@s7m0n I've read your issue a bit too fast and thought there were problems with other packages as well, thats why I've generated those ebuilds to test. In 0.3.2 there is still no automatic self referencing, although that was the only change I had to do manually, which is good because everything else is working well. So now is just a matter of deciding how to implement this change, and as you pointed out about du-dust, there is room for further improvements when the crate name differs from the repository name. |
I'm not a fan of the defaulting to GitHub style URLs. Many crates aren't hosted on GitHub and many don't match name wise as we've seen. I'll likely restore some of the code that was stripped out previously to identify the self crate to include the download link for that. |
Being new to cargo & rust and trying to understand this i tried it on zoxide and du-dust (https://github.com/ajeetdsouza/zoxide, https://github.com/bootandy/dust).
In both cases it seems that when i follow the steps as described i get a good ebuild but the references to the package sources or the crate of the same is missing. Therefore i get a "error: could not find
Cargo.toml
in ..." for these when calling 'build'.I can then add the package+version to the list of crates or add a reference to SRC_URI "https://github/user/{P}/archive/v${PV}.tar.gz -> ${P}.tar.gz" as i've seen it in another package.
I wanted to check if that is intended to be (then sorry for the question, might be worth mentioning in the docs) or a issue?
And of course if there is a preferred one of these two solutions.
The text was updated successfully, but these errors were encountered: