Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

fix(installation): Optimize Rustlings Installation in Gitpod Workspaces #1766

Closed
wants to merge 2 commits into from

Conversation

haraldreingruber
Copy link

@haraldreingruber haraldreingruber commented Nov 11, 2023

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 haraldreingruber changed the title Optimize Rustlings Installation in Gitpod Workspaces fix(gitpod): Optimize Rustlings Installation in Gitpod Workspaces Nov 11, 2023
@haraldreingruber haraldreingruber changed the title fix(gitpod): Optimize Rustlings Installation in Gitpod Workspaces fix(installation): Optimize Rustlings Installation in Gitpod Workspaces Nov 11, 2023
@shadows-withal
Copy link
Member

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

@haraldreingruber
Copy link
Author

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.

@mo8it
Copy link
Contributor

mo8it commented May 12, 2024

Closing because the installation script is removed in the upcoming v6

@mo8it mo8it closed this May 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants