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

Running Training Scripts in WSL issues #361

Open
2 tasks
mblack88 opened this issue Apr 19, 2022 · 3 comments
Open
2 tasks

Running Training Scripts in WSL issues #361

mblack88 opened this issue Apr 19, 2022 · 3 comments
Labels

Comments

@mblack88
Copy link
Collaborator

While setting up a new development/training environment I am having issues with the version of the scrips on the main branch.
Creating this issue as a place to hold the discussion.
Initially the items I am running into:

  • When checking to see if the repository exists or not the git ls-remote call in repo_is_reachable doesn't include the User or PAT. Since I don't have my credential manager setup for WSL the call fails. I can put the $TOKEN_OWNER and $TEACHER_PAT into the call it is succeeds.
  • The version of http that is installed in my WSL doesn't have the --quite flag available and the call fails unless the flag is removed from the line.

My long term goal is to get the base training environment running in a container so that replicating the training material across my teams is easier, and makes setting up new machines easier.

I would love to collaborate with someone on this, or learn where I have made some mistakes in the setup.

The setup has changed a bit from the version we have been using, and I haven't actually trained in over a year and a half.

@ppremk
Copy link
Contributor

ppremk commented Apr 26, 2022

@mblack88 thank you for opening this issue, @dzeyelid has been working on a solution for this. @dzeyelid is there possibilities to collaborate with @mblack88 to test your solution?

@dzeyelid
Copy link
Contributor

dzeyelid commented Apr 27, 2022

Thank you @ppremk introducing me.

I got similar errors, so I'm creating a development container environment in my PR lefthandz-githubtraining/training-manual#8 and talking with @ppremk to improve it. (After finishing the improvement, I'll send a PR to this repository with the updates.)

In the environment, the http --quiet argument is available and your issue that is required username and password does not occur.

If you would like to check the environment, you can fork my repository and run scripts on the branch workspace.

@jessehouwing
Copy link
Contributor

I upgraded my WSL to ubuntu-jammy, which fixes all issues, mine was on ubuntu 18LTS, but switching to 22LTS made my issues go away. I also repaired the codespaces to sun the correct version. See:
#378

steps to upgrade to ubuntu jammy:

sudo bash
apt-get update
apt-get upgrade
apt-get remove snapd
do-release-upgrade
apt-get autoremove

To go from 18 to 22 I had to run these steps twice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants