Question about repo sync using manifest <include

194 views
Skip to first unread message

nax2 nax2

unread,
Mar 3, 2025, 2:41:56 PM3/3/25
to Repo and Gerrit Discussion
Hi,

I'm trying to reuse the manifest <include>.  It works well for an <include> manifest that includes a second child manifest for particular software components (SWC).

I'm providing a generalized example, but I hope this gets the point across without requiring the exact manifest file syntax for the example.

Manifest SWC_Target  ->  
   <include name="SWC1"/>   ->
      <include name="SWC3"/>   

However, I'm trying to handle the scenario when I have 2 different <include> under SWC_Target that both have a dependencies pointing to the same dependent SWC.

Manifest SWC_Target  ->  
   <include name="SWC1"/>   ->
      <include name="SWC3"/>   
   <include name="SWC2"/>   ->
      <include name="SWC3"/>   

If I have to repo sync SWC1 and SWC2 independently it is successful.  However, currently, if I repo sync SWC_Target then it will complain that there is a duplicate.

error: in `sync -m swc/includetest.manifest.xml`: duplicate path src/SWC3 in /random/swc-test/.repo/manifests/swc/includetest.manifest.xml

Is there anyway to tell repo tool to ignore <include> conflicts or get it to not complain if conflict's dependency <project> values for name, path and revision are the same?

Please let me know if this is a new feature request.

========
repo --version

... A new version of repo (2.50) is available.
... You should upgrade soon:
    cp /opt/code/swc-is-jsoncpp/.repo/repo/repo /home/randomuser/.bin/repo

repo version v2.52
       (from https://gerrit.googlesource.com/git-repo)
       (tracking refs/heads/stable)
       (Wed, 5 Feb 2025 12:36:27 -0800)
repo launcher version 2.45
       (from /home/randomuser/.bin/repo)
       (currently at 2.52)
repo User-Agent git-repo/2.52 (Linux) git/2.7.4 Python/3.6.10
git 2.7.4
git User-Agent git/2.7.4 (Linux) git-repo/2.52
Python 3.6.10 (default, Dec 19 2019, 23:04:32)
[GCC 5.4.0 20160609]
OS Linux 4.4.0-87-generic (#110-Ubuntu SMP Tue Jul 18 12:55:35 UTC 2017)
CPU x86_64 (x86_64)
========

Thank you for your time to read this.

nax2 nax2

unread,
Mar 4, 2025, 10:50:51 AM3/4/25
to Repo and Gerrit Discussion
If a new feature it looks like the code could change here, as of now line 1430 function:  def recursively_add_projects(project)

If I was to change code and gain approval through a PR....  would you want me to do that work?

nax2 nax2

unread,
Mar 6, 2025, 12:50:45 PM3/6/25
to Repo and Gerrit Discussion
My apologies.  I'm in the wrong forum.

Daniele Sassoli

unread,
Mar 7, 2025, 3:48:33 AM3/7/25
to Repo and Gerrit Discussion
On Thursday, 6 March 2025 at 17:50:45 UTC naxcre...@gmail.com wrote:
My apologies.  I'm in the wrong forum.
 
Don't think you are, this mailing list is also used for repo tool, as well as Gerrit.

nax2 nax2

unread,
Mar 13, 2025, 3:43:15 PM3/13/25
to Repo and Gerrit Discussion
Thank you for responding Daniele.

I've written answer post.  

I'm not sure why no one has responded back.

Regards,
Michael

nax2 nax2

unread,
Feb 2, 2026, 7:55:17 AM (2 days ago) Feb 2
to Repo and Gerrit Discussion
Hi All,

Has there been any updates on this topic?
I've written in 2 Gerrit chats about it.

Regards,
Michael

Reply all
Reply to author
Forward
0 new messages