replit / polygott

Base Docker image for the Repl.it evaluation server
https://replit.com
MIT License
395 stars 103 forks source link

Add rustup, rust_nightly #157

Open cmontella opened 4 years ago

cmontella commented 4 years ago

First let me say I have no idea if this is the right way to do this, so any help here is appreciated.

I'm trying to compete in the programming languages jam, but I can't get past configuring the environment. I need Rust nightly for some features that the installed version does not support yet. I'd like to use the rustup tool to switch versions, or even better be able to specify the version of Rust I want to use for my repl. It seems like everything I've tried so far gets reset when I visit my repl again, so I'm a bit lost on what to do. Really hoping to find a way around this because I've burned 2 days of the jam already on this issue and I haven't even started coding yet 😬!

Thanks for any help and tips you can provide.

dan-stowell commented 4 years ago

Thank you for the submission, @cmontella! I'm sorry you've lost time to this though. Are you able to hack locally while we figure out the best way to get rust nightly onto repl.it?

dan-stowell commented 4 years ago

Actually, can you download a particular nightly rust toolchain into the repl and use that?

cmontella commented 4 years ago

Dan, thanks for the reply. We are hacking locally for now, I just hope it doesn't disqualify us as the blog posted said the submissions should be developed on repl.it

I did manage to get a toolchain installed locally, but after reconnecting to the repl it seems like everything I had configured was gone. I figured maybe I put things in a place that gets reset on reconnect, so then I tried putting it in our repl root but I got an error telling me I had exceeded my disk quota (I guess rust is too big?).

I can hack locally and run binaries of my runtime repl.it though; that may be the best solution at this point.

dan-stowell commented 4 years ago

Good afternoon @cmontella ! You've probably noticed by now that we've been slow to merge community PRs on polygott. We've decided to focus on giving Repl.it a stable foundation instead of adding features and updating languages. Once we and our community feel comfortable with Repl.it's overall stability, we'll give this change another look. Thank you for contributing!