The `update_project_templates` script is broken
Problem
This script is used only by developers to regenerate built-in project templates: https://docs.gitlab.com/ee/development/rake_tasks.html#update-project-templates
It's broken because:
Praefect does not create .git files anymore. Instead it moves in a directory (e.g. @cluster/repositories/X/Y
) that is hidden to Rails. Here's a internal discussion about it.
Proposal
I've experimented with a POC (!95758 (closed)) to change the URL to connect through http(s)://
instead of file://
.
For this, the user will have to specify GL_USERNAME
and GL_PASSWORD
to execute the rake task.
The POC works, but I didn't have time to fix specs before going into PTO. So I'm creating this issue to keep track of it.
Anyone is welcome to pick this issue up and fix the script, with this proposal or any other.
I'll set the severity4 to this typebug , as there's a workaround and it only affect development speed, not users.
The easies workaround is to use my POC to regenerate the built-in locally. Another workaround would be to do all the steps that the script does manually.