Skip to content
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

Rust install doesn't perform a complete installation #19

Closed
pedropombeiro opened this issue Jan 27, 2023 · 5 comments
Closed

Rust install doesn't perform a complete installation #19

pedropombeiro opened this issue Jan 27, 2023 · 5 comments
Labels
bug Something isn't working

Comments

@pedropombeiro
Copy link

I'm trying to convert from asdf to rtx on my QNAP NAS, and I noticed that doing rtx global [email protected] and then source "$HOME/.local/share/rtx/installs/rust/1.58.1/env" doesn't result in a working rust install. I still needed to perform rustup default 1.58.1 (would be easier to script if there was an rtxcommand that returns the currently configured rust version).

Is this known? I don't recall having to call rustup with asdf.

@jdx
Copy link
Owner

jdx commented Jan 27, 2023

Frankly I'm not actually sure that it makes much sense to use asdf or rtx with rust since rustup has its own method of managing the rust version with cargo. I think this is one language that's best left to the idiomatic tools.

That said, rtx should definitely do what it can here to work as best as possible. I'll have to dig into the rust plugin and see how it's meant to work.

@pedropombeiro
Copy link
Author

I made a second attempt to convert my environment to rtx, and didn't come across this problem the second time. I also decided to use rustup instead of leveraging rtx/asdf for it since that allows me to use a recent rust version on a Linux distro that I run that has an older glibc version, so I'm closing this bug report. Thanks for your insights!

@jdx jdx reopened this Jan 28, 2023
@jdx
Copy link
Owner

jdx commented Jan 28, 2023

I'm going to keep this open actually since I still want to give that plugin a drive and see how well it works in rtx

@jdx
Copy link
Owner

jdx commented Jan 31, 2023

I haven't yet had the time to look into this but this plugin uses the exec-env script which I've fixed several issues around since you posted this. I suspect it's probably working now but will eventually get around to testing this.

@jdx jdx added the bug Something isn't working label Jan 31, 2023
@jdx
Copy link
Owner

jdx commented Feb 12, 2023

this appears to be working fine now

@jdx jdx closed this as completed Feb 12, 2023
jdx added a commit that referenced this issue Jun 1, 2024
Fix typo in script-tasks.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants