rustlings
rustlings copied to clipboard
fix(installation): Optimize Rustlings Installation in Gitpod Workspaces
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.
I'm curious: Would the solution in #1780 also work for this?
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.
Closing because the installation script is removed in the upcoming v6