tmplr
tmplr copied to clipboard
Cannot fetch gitlab project
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:
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).
I'll see if I can't take a look this weekend, or next week. I should have some spare time.
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.