Rich-Harris / degit

Straightforward project scaffolding
MIT License
7.05k stars 246 forks source link

ERROR: could not download { GITLAB TAR URL} when fetching repo from gitlab #279

Open Slyracoon23 opened 3 years ago

Slyracoon23 commented 3 years ago

This is my command that I typed into terminal

$ npx degit git@gitlab.com:ionic-react-course/hello-world.git hello-world

! could not download https://gitlab.com/ionic-react-course/hello-world/repository/archive.tar.gz?ref=d133d476024c928008e81fe27e5c0257bfb8c010

Apparently, there is an issue with fetching gitlab repos using degit. If you go to the repo(https://gitlab.com/ionic-react-course/hello-world) on your browser, you can download any tar file by clicking the download button for your any repo version e.g. I am downloading a random history of this repo https://gitlab.com/ionic-react-course/hello-world/-/archive/8c62ec71f6eb4f4b9b2af05f32783876b6b00534/hello-world-8c62ec71f6eb4f4b9b2af05f32783876b6b00534.tar.gz

The problem seems to be that gitlab has changed their tar file archive url.

Hopefully someone can reproduce the issue

Quantme commented 3 years ago

I have the same issue, tried what ducva did adding -m=git parameter

image

after writing 'yes'...

image

Hope it helps.

djusHa commented 3 years ago

Same problem here on Windows, cannot download from Gitlab. Any suggestions? Or schould we use tiged?