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.

--skip-existing option should skip existing non-git directories during import

See original GitHub issue

I’m using vcs import src < repos.txt for a ROS workspace to pull in dependencies. I would like to have a feature where I can skip one or more repositories.

The reason for this feature is when you’re building a docker image and use the import you could skip a folder which is already in your workspace (same repo but for example without a .git folder). --skip-existing could be used if there was an additional parameter to even ignore different url (in CI/CD the for the current directory can be different).

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
eliasdccommented, May 9, 2020

This time it did work, thanks.

#15 18.44 === src/repo1 (git) ===
#15 18.44 Skipped existing directory
#15 18.44 === src/repo2 (git) ===
#15 18.44 Cloning into '.'...
#15 18.44 === src/sensors/sensorA (git) ===
#15 18.44 Cloning into '.'...
#15 18.44 Switched to a new branch 'refactor'
#15 18.44 Branch 'refactor' set up to track remote branch 'test' from 'origin'.
#15 18.44 === src/sensors/sensorB (git) ===
#15 18.44 Cloning into '.'...
#15 18.44 Switched to a new branch 'test'
1reaction
dirk-thomascommented, May 9, 2020

This time I took the time to reproduce your use case (which I should have done in the first place) and I think I got it right. Thanks for your patience and hoping you can try it again.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to skip existing files in sub folders and copy only new files
shutil.copytree isn't written to skip existing destination files and directories. From the docs. The destination directory must not already ...
Read more >
Import directory full of existing c++ code
I am building the project now. It would be nice if there was an option to add a folder to an existing project...
Read more >
Delete Task - Apache Ant
Deletes a single file, a specified directory and all its files and subdirectories, or a set of files specified by one or more...
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