ddev / ddev-gitpod-launcher

Launch any DDEV project with Gitpod
https://ddev.github.io/ddev-gitpod-launcher/
Apache License 2.0
14 stars 9 forks source link

fatal: destination path '/workspace/ddev-gitpod-launcher' already exists and is not empty #20

Closed MisterH001 closed 2 years ago

MisterH001 commented 2 years ago

Hi! Just tried launching a Magento 2 git repo in gitpod.io using the ddev-gitpod-launcher but I receive the following error when cloning the repo:

Checking out repository https://bitbucket.org/xxxx/xxxxx/src/master/ Attempting to get artifacts from https://github.com/drud/d9simple-artifacts Cloning into '/tmp/d9simple-artifacts'... remote: Enumerating objects: 7, done. remote: Counting objects: 100% (3/3), done. remote: Compressing objects: 100% (3/3), done. remote: Total 7 (delta 0), reused 0 (delta 0), pack-reused 4 Receiving objects: 100% (7/7), 7.12 MiB | 11.15 MiB/s, done. fatal: destination path '/workspace/ddev-gitpod-launcher' already exists and is not an empty directory.

Any ideas? (ps, once again I find myself in awe of your project. Thank you!)

rfay commented 2 years ago

I'm not certain how much this has been tested on bitbucket. You should be able to just take a look and see what happened... Did your project get checked out?

Is it possible this was on the second run and there's a bug with the prebuild or something? Maybe you can try it with a fresh gitpod instance (when it says you've already got one, tell it to make a new one anyway.

MisterH001 commented 2 years ago

Hi Randy Yes tested with completely fresh instance also. when I get back to my desk I’ll have a look at what is in the directory which may give me some clues and go from there. thanks!

rfay commented 2 years ago

It's definitely not rocket science, so shouldn't be too hard to figure out what's going wrong with the script.

It's just https://github.com/drud/ddev-gitpod-launcher/blob/main/.gitpod/start_repo.sh

And you could fiddle with that, add set -x to it, etc. Thanks!

MisterH001 commented 2 years ago

Thanks Randy! But how would I achieve this while still using your ddev-gitpod-launcher ? e.g., How would I override those scripts? Thanks!

rfay commented 2 years ago

I just tried it with a simple repository, https://gitlab.com/rfay/d9simple - and it worked fine.

You need to give it a repository checkout link, is it possible you're giving it something else?

Please try https://gitlab.com/rfay/d9simple and see what you get, then you can take a look at the other.

If you can grant me access (rfay) to your repo, I will chase it as well, but I imagine you're not giving the repository link?

MisterH001 commented 2 years ago

Ahhh thanks Randy! Yes perhaps it is the wrong link. I’ll check the link and try again on Monday. thank you!

MisterH001 commented 2 years ago

Yep, it was the wrong link!! Sorry, but thanks for your time :-)

rfay commented 2 years ago

Glad it's working!

rfay commented 2 years ago

If you see how to make the UI better, please do a little PR. Maybe it doesn't clearly say that it needs to be the git URL?

MisterH001 commented 2 years ago

Absolutely I will :-) thanks!

------ Original Message ------ From "Randy Fay" @.> To "drud/ddev-gitpod-launcher" @.> Cc "MisterH001" @.>; "Author" @.> Date 20/06/2022 13:31:43 Subject Re: [drud/ddev-gitpod-launcher] fatal: destination path '/workspace/ddev-gitpod-launcher' already exists and is not empty (Issue

20)

If you see how to make the UI better, please do a little PR. Maybe it doesn't clearly say that it needs to be the git URL?

— Reply to this email directly, view it on GitHub https://github.com/drud/ddev-gitpod-launcher/issues/20#issuecomment-1160390703, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUARWSVP3VBHQLCPJ5CSDW3VQBQC7ANCNFSM5ZCMIHIQ. You are receiving this because you authored the thread.Message ID: @.***>