tmplr icon indicating copy to clipboard operation
tmplr copied to clipboard

Cannot fetch gitlab project

Open Morgul opened this issue 1 year ago • 2 comments

Attempting to use tmplr on my gitlab project doesn't work, it simply says Working and spins forever. Using local to the checked out project works perfectly, as does tmplr preview.

I believe this is related to issues degit has with gitlab and projects in subgroups; I had to switch to using tiged instead (mainly because of this issue). (I found tmplr from a tiged issue, actually, and it's exactly what I want, love it so far!)

My project is here: https://gitlab.com/skewed-aspect/seed-projects/vue3-bootstrap (currently, the tmplr implementation is in the template branch, but tmplr failed on the base project).

I've tried the following commands, and they all hang:

$ npx tmplr https://gitlab.com/skewed-aspect/seed-projects/vue3-bootstrap#template
$ npx tmplr https://gitlab.com/skewed-aspect/seed-projects/vue3-bootstrap

Screenshot: image

Morgul avatar Oct 27 '23 04:10 Morgul

perhaps we should try switching to tiged instead of degit. I will take a look at this issue and the potential solution when I get the time, but if you are interested I would also very much appreciate a PR! in case you would like to try switching degit with tiged, you would need to change this library, specifically this line (though tiged doesn't seem to be typed or have a typedef package, so perhaps you'd need to also add a module augmentation for that, which could be easily done by copying the DefinitelyTyped repo).

loreanvictor avatar Oct 27 '23 07:10 loreanvictor

I'll see if I can't take a look this weekend, or next week. I should have some spare time.

Morgul avatar Oct 27 '23 16:10 Morgul

ok I don't know why this issue was closed since support for subgroups wasn't still added to tmplr. in any case, support for it is now added in version 0.3.3. thanks to @Morgul for the help on this matter.

loreanvictor avatar Sep 06 '24 16:09 loreanvictor