Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid git link path! Please check A git repository in ...\A\_externals\B\_externals\A #7

Open
andry81 opened this issue Jan 6, 2023 · 0 comments

Comments

@andry81
Copy link

andry81 commented Jan 6, 2023

I have trying to port my projects from svn into git and using your project as a replacement for svn:externals.

Main issue here is that the svn externals does support recurrent externals (circular dependency without recursion):

A -> B/subdirX
B -> A/subdirY

, where subdirX and subdirY has no externals.

Traceback (most recent call last):
  File "C:\Python\x64\310\Scripts\gil.py", line 419, in <module>
    sys.exit(main())
  File "C:\Python\x64\310\Scripts\gil.py", line 406, in main
    context.link()
  File "C:\Python\x64\310\Scripts\gil.py", line 180, in link
    self.link_recursive(root)
  File "C:\Python\x64\310\Scripts\gil.py", line 190, in link_recursive
    self.link_path(d)
  File "C:\Python\x64\310\Scripts\gil.py", line 203, in link_path
    return self.update_links(path, filename)
  File "C:\Python\x64\310\Scripts\gil.py", line 246, in update_links
    raise Exception("%s:%d: Invalid git link path! Please check %s git repository in %s" % (filename, index, gil_name, gil_path))
Exception: ...\contools\_externals\svncmd\.gitlinks:0: Invalid git link path! Please check contools git repository in ...\contools\_externals\svncmd\_externals\contools

Here the A is contools, B is svncmd.

Seems when you do create recurring dependency at some point gil update can crash with the exception.

As a workaround erasing the A\_externals and rerun gil update fixes the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant