rustlings icon indicating copy to clipboard operation
rustlings copied to clipboard

fix(installation): Optimize Rustlings Installation in Gitpod Workspaces

Open haraldreingruber opened this issue 2 years ago • 2 comments
trafficstars

Currently, when opening a Gitpod workspace, Rustlings is cloned into a sub-directory. This can be confusing and also leads to issues with the paths of the compile errors not opening the correct file when ctrl+clicking the paths in the terminal output.

To improve the user experience, this Pull Request proposes to skip the cloning process when the install.sh script is running in a Gitpod workspace. This change will ensure that the Rustlings exercises are directly accessible in the workspace root, thereby resolving the path issues in the terminal output.

At the moment, the latest main branch revision is used, which is probably fine too. Or would you prefer still checking out the latest tagged release? If this might make also sense for GH Codespaces, please let me know.

Feedback and suggestions are welcome.

haraldreingruber avatar Nov 11 '23 19:11 haraldreingruber

I'm curious: Would the solution in #1780 also work for this?

manyinsects avatar Nov 29 '23 16:11 manyinsects

I'm curious: Would the solution in #1780 also work for this?

Good thinking. I haven't tested it yet, but with the changes from #1780 it should not be a problem calling install.sh --no-clone from .gitpod.yml when the workspace is initialized on Gitpod.

haraldreingruber avatar Nov 29 '23 19:11 haraldreingruber

Closing because the installation script is removed in the upcoming v6

mo8it avatar May 12 '24 20:05 mo8it