question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

vcs export fails to add nesting path prefix to nested repos

See original GitHub issue

Starting 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:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
calvertdwcommented, Jul 15, 2019

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!

0reactions
dirk-thomascommented, Jul 15, 2019

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 the PYTHONPATH 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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found