Skip to content

Use rustup for better versioning #2

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
Jul 15, 2017

Conversation

lteacher
Copy link

Per comment on codewars#464 this change would instead use rustup to manage the versioning.

Probably would be further changes later for codewars#240 to initialise the cargo project to change from using the main.rs file created now to using a cargo folder structure which would have the needed Cargo.toml for dependencies.

# Setup env
ENV USER codewarrior
ENV HOME /home/codewarrior
ENV NPM_CONFIG_LOGLEVEL warn
ENV PATH $HOME/.cargo/bin:$PATH
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This path has the versioned rustc, without setting it here, the mocha tests won't find rustc later in the dockerfile

# Setup env
ENV USER codewarrior
ENV HOME /home/codewarrior
ENV NPM_CONFIG_LOGLEVEL warn
ENV PATH $HOME/.cargo/bin:$PATH

# Install rustup with the Rust v1.15.1 toolchain
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The block was moved below because the install script needs to create the local .cargo directory for example but when it was up top the environments were not set to do it perfectly as they reference $HOME in the shell script.

@kazk kazk merged commit 9757508 into kazk:fix/rust-version Jul 15, 2017
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants