-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issues with the test suite #18
Comments
Hey man, big fan of your stuff!
That's a good callout. I see you got it fixed up in the PR you submitted, thanks!
This is an expected behaviour. The alias' in |
Watcha got in mind? I have it on my TODO list to do something similar to this, but just haven't put the effort in yet. |
I actually packaged it for Arch Linux already: https://archlinux.org/packages/extra/x86_64/cargo-run-bin/ Also submitted a merge request to Alpine: https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/58242 Will submit another PR here (for updating the docs) once it makes it into Alpine repos. |
Wow you're fast! That's awesome, thank you! |
Looks like we have to wait until Rust 1.74 is available on Alpine :/
|
Maybe you can use cargo-binstall to install pre-built cargo-run-bin ? There's also an official pre-built cargo-binstall and an official one-line script (it downloads and runs a very simple and easy to review script) for installing cargo-binstall |
Good idea but unfortunately we cannot do that, the Alpine packages should be built from source. |
Aha sorry, I know that for distro it has to be built from source, I am suggesting an alternative to installing from distro for now (until Alpine rustc is new enough). IMO many rust crates are just easier to install and upgrade by using cargo-install or cargo-binstall, since they often require latest cargo and often updates frequently. |
For cargo-run-bin, maybe it makes sense to try lowering the msrv? The msrv should be for cargo-run-bin by having a Cargo.lock to latest dependencies that is available on the msrv (there's a cargo ticket for automatically doing this). Then users who need to build on msrv can simply build/install with |
Yeah, lowering the MSRV is definitely an option. Currently
|
Hmmm IMO it can be workaround by doing this: Add this to
Then:
It's easier than I thought, with |
@NobodyXu Nice, that's super clean, thanks! |
Hello! 🐻 I recently came across your blog post and discovered this project. I liked it and decided to package it for Linux distributions.
However, I came across a couple of problems while running the test suite:
Tests require
cargo-run-bin
to be installed which means in an isolated environment (chroot), I am not able to run the tests without installingcargo-run-bin
to the PATH. I would expect a parameter to tweak this, such as setting a custom path for the binary instead of straight up runningcargo bin
.I am getting a bunch of warnings about the aliases that are set in this repo:
target/debug
. I made an attempt to fix this at refactor: run tests as integration test #17Thanks for the nice tool!
The text was updated successfully, but these errors were encountered: