<div dir="ltr"><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Nov 24, 2021 at 2:29 PM Aleix Pol <<a href="mailto:aleixpol@kde.org">aleixpol@kde.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Wed, Nov 24, 2021 at 2:10 AM <a href="mailto:ashark@linuxcomp.ru" target="_blank">ashark@linuxcomp.ru</a> <<a href="mailto:ashark@linuxcomp.ru" target="_blank">ashark@linuxcomp.ru</a>> wrote:<br>
><br>
> Hello.<br>
> There is currently a problem that projects are identified by path in <a href="http://invent.kde.org" rel="noreferrer" target="_blank">invent.kde.org</a>. But in pkgbuilds in Arch Linux the makepkg clones repo twice, first time to the dir with pkgbuild, and second time to the srcdir for build package. And that second repo has first repo as origin, i.e. its origin is path to the first repo. And this leads to breakage of determining project identifier in cmake module. To workaround, I either need to clone to the path that matches the regexp, such as crutch.kde.org:pim/zanshin.git or fixing the origin of the problem.<br>
><br>
> I wanted to fix it by identifying the project by its name. See <a href="https://invent.kde.org/sdk/releaseme/-/merge_requests/13" rel="noreferrer" target="_blank">https://invent.kde.org/sdk/releaseme/-/merge_requests/13</a>.<br>
><br>
> Now, the question is, could we consider project names unique? In that case, we can merge my mr, and path crutch will not be needed anymore.<br>
<br>
I agree it would be a problem to have different repositories with the<br>
same name. I'm not sure how we can enforce it though.<br></blockquote><div><br></div><div>This is something that Sysadmin already encountered and resolved.</div><div><br></div><div>Please see the 'identifier' key in the repository metadata (located at <a href="https://invent.kde.org/sysadmin/repo-metadata/">https://invent.kde.org/sysadmin/repo-metadata/</a> in the projects/ subfolder) which we guarantee to be unique.</div><div>This is already used and relied upon by scripty as well as our internal systems (such as <a href="http://commits.kde.org">commits.kde.org</a>) when referencing repositories.</div><div><br></div><div>The repository name itself (stripped of any folders) is not guaranteed to be unique.<br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Aleix<br></blockquote><div><br></div><div>Cheers,</div><div>Ben<br></div></div></div>