Conversation
RyanGlScott
left a comment
There was a problem hiding this comment.
Thanks for the PR!
I am quite happy with the RUSTUP_TOOLCHAIN changes in wrapper.rs. I have more mixed feelings about the introduction of a wrapper script, since it's yet another way way to install mir-json that we would need to maintain going forward (e.g., remembering to update the toolchain version). That being said, it does replace multiple cargo/rustup commands with a single script, so I can see the appeal behind it. I won't push back if others are on board.
install-mir-json.sh
Outdated
| echo "Please install rustup by running:" | ||
| echo " curl https://sh.rustup.rs -sSf | sh" | ||
| echo "and update your path:" | ||
| echo " source $HOME/.cargo/env" |
There was a problem hiding this comment.
Instead of putting the exact shell commands to run here, I'd recommend pointing folks to the instructions at https://rustup.rs instead, as it actually recommends running a different command than what is listed here. What's more, this would future-proof the script in the event that the https://rustup.rs instructions change later.
There was a problem hiding this comment.
Ah, I took the command from the README which has a link to an old version of the rust book. I will fix both the script and the readme.
This is fair although I find maintaining a README to be more error prone and more likely to fall out of date than a testable script. Case in point the Rust book reference in our README was already out of date. |
|
OK. I generally prefer to know exactly what @spernsteiner @qsctr, do you have any thoughts on this? |
|
I don't have strong feelings about this. I think the toolchain and component installations can actually be combined into one command, like we document in Line 48 in 92d2e94 (speaking of which, that line probably should be updated to just ./install-mir-json.sh, if we decide we are using the script.)
At that point, the shell script really is just turning two commands into one command, so I'm not sure that it's necessary. Also, I think there is some value in having the command for setting up the toolchain and the command for building & installing |
79a7fcc to
ef3aadf
Compare
This addresses:
#48
It adds a script to simplify installation a bit and it adds a RUSTUP_TOOLCHAIN env var to wrapper.rs to make sure the installed tools always use the right toolchain.