doorstop icon indicating copy to clipboard operation
doorstop copied to clipboard

doorstop errors when it finds its own repo

Open sarnold opened this issue 10 months ago • 1 comments

We have several workflows that combine multiple git repos under a "parent" repo subdirectory (similar to the usual Yocto build setup with multiple metadata repos). If I run doorstop to create a tree in that parent repo, it recursively finds itself and coughs errors starting with the first command:

$ doorstop create SRD ./reqs
building tree...
ERROR: no parent specified for SRD

when doorstop is cloned under some directory, eg:

$ ls ext/
affinity  diagrams  doorstop  pyserv

I can easily stop doing that and install from PyPI instead, but I probably won't be the only one trying something similar. Adding a check for itself is probably not unwarranted.

And thanks for the nice FOSS requirements tool; we already have some FOSS documentation template repos where we can ingest yaml data and generate .rst doc snippets. This is going to be fun...

sarnold avatar Feb 24 '25 22:02 sarnold

Given some of the related issues with virtualenv folders, ignoring any directories in .gitignore should work.

sarnold avatar Feb 24 '25 22:02 sarnold