-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Cannot get Development environment running on Windows 11 #7027
Comments
Hmm... sorry for the hassle here. I don't personally use Windows, nor does any of the other core maintainers that I'm aware of, so I'm really not sure. From a quick glance, it looks at least some of the failures you mention sound like it's using the wrong docker container... see the diagram of how the different containers layer on each other here: https://github.com/dependabot/dependabot-core#building-images-from-scratch The VSCode instructions were originally contributed from the community, so if they're incorrect we'd happily accept a PR to fix. @mburumaxwell @milind009 @trejjam I think the three of you all worked on your contributions to this project using Windows machines, perhaps you know? |
For the @dwc0011 do you dev on a windows machine or a unix variant? |
I use wsl within windows 11 and am able to run without issues with some modifications. I am on my phone so I do not have everything in front of me. But the cannot find .bundle issue when running is because it’s in the omnibus directory. Update the run Json to point to that and it should find it. I will create PR(s) after the holidays that will update the instructions, update the gem files, and the outdated extensions. I will definitely have them submitted Monday at the latest. |
Thanks for the responses! I'll most likely wait until I see some of the changes from @dwc0011's PRs. After I see how it all works using WSL and being able to play around with it I hope to have a better understanding to take a look at the VS Code issues. |
@jeffwidman I haven't had time to circle back to this but should get a chance this upcoming weekend. I'll report back after I test. Our requirements are: I actually found a PR that does exactly what we need (#6924) on the Bitbucket and Jira front, so my plan is to learn how this all works and try their solution. |
I'm having some trouble trying to get this going on a Windows 11 machine and was curious if it's expected for Windows machines to be able to follow the README instructions to setup a development environment. I've tried a few scenarios and all of them lead to some type of issue but I'm going to highlight Visual Studio Code DevContainers scenarios since it seems like the easiest path.
It's worth noting I'm not well versed in Ruby at all, so there is a bit of a learning curve happening on my end as well.
After checking out dependabot-core onto my Windows machine and opening it in Visual Studio Code I tried two options. Reopening in Container and Clone in Volume.
Reopening in Container
Directory tree:
Debug dry run:
Debug Tests:
Clone in Volume
Directory tree:
Debug dry run:
If I run a bundle install and attempt again it leads to this issue
Debug tests:
Ubuntu via WSL
I also tried this but it didn't lead to a positive outcome either. There were whitespace issues where I had to convert use dos2unix to convert files, docker-dev-shell would attempt the docker run at the bottom of the script but seems to fail silently, and a couple other issues but didn't spend time documenting this too much since the VS Code route seemed like the way to go.
What's the expectation when testing dependabot-core on Windows? Is there something I'm getting wrong or is there a recommended flow for Windows that I missed?
Appreciate any help / guidance.
The text was updated successfully, but these errors were encountered: