vcs export fails to add nesting path prefix to nested repos
See original GitHub issueStarting with an existing nested repository structure in ~/dev
:
repository-group
├── .git
├── nested-repo-one
│ └── .git
└── nested-repo-two
└── .git
and running
~/dev $ vcs export --nested repository-group
the result is
repositories:
repository-group:
type: git
url: https://<url>.git
version: master
nested-repo-one:
type: git
url: https://<url>.git
version: develop
nested-repo-two:
type: git
url: https://<url>.git
version: develop
but should be
repositories:
repository-group:
type: git
url: https://<url>.git
version: master
repository-group/nested-repo-one:
type: git
url: https://<url>.git
version: develop
repository-group/nested-repo-two:
type: git
url: https://<url>.git
version: develop
I had forgotten about the export
command for a while. @dirk-thomas thanks for reminding me. Since we use nested repos in the IHMC build framework, this breaks that convenience for me. I’m guessing it’s an easy fix. 😄
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
unable to install go module (private nested repository) - GitLab
When using go modules, I cannot install a module - private gitlab repository that is nested within a subgroup. This was originally discussed ......
Read more >Nested Git repositories? - Stack Overflow
Git's built in features to manage nested repositories are submodule and subtree . Here is a SO question that covers the pros and...
Read more >January 2022 (version 1.64) - Visual Studio Code
Remote VS Code window support is limited. Explorer file nesting. The Explorer now has experimental support for displaying files in the same ...
Read more >hg
This finds all changes from the repository at the specified path or URL and adds them to a local repository (the current one...
Read more >Understanding controllers and routes in NestJS
Now that we have reviewed HTTP requests, let's talk about how routes and controllers are used in Nest. A route is a combination...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Whew.
A
source setup.sh
did the trick. For some reason I was doing./setup.sh
so the environment changes died with the process. 😅 It’s a Monday.It worked! The paths prefix correctly and I got my print message. Thanks!
I wouldn’t recommend to install a version for testing using
sudo
. Instead you could use a virtual env.When you invoke
vcs-export
directly you need to extend thePYTHONPATH
to contain the directory of this repository so that it picks up the modified Python modules.The version number wouldn’t be different on the branch - it is still the same as the latest released version.
You might want to add a simple
print
call in the export function to confirm that you are actually using the code from the custom branch.