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 import hangs if environment variables are in the --input path

See original GitHub issue

We use vcstool in our CI server to clone repos files with lines like,

vcs import --input $CI_PROJECT_DIR/repos_file.repos $MY_WORKSPACE/src

This has been working fine for us until yesterday. Now it hangs on any import lines where there are environment variables in the paths. I also see there might have been an update yesterday? This is all going on in a docker, but I can confirm that the docker is using vcs 0.1.26.

Edit: Can also confirm that on another computer trying the same thing with vcs 0.1.22 that it has no problem with environment variables in the args.

Edit+: Can also (unsurprisingly)show that it’s not actually the environment variables causing the problem. With valid manually entered paths I can make it hang. I know this doesn’t really help much, but the line i’m using is,

vcs import --input /builds/DD/repos_dir/repos_file.repos /builds/DD/deps_ws/src

Edit++: If I modify the path arg to be . then it works, so I guess it’s something with the way it’s handling the path arg

Edit+++: Sorry for all the edits, just trying to provide as much info as possible, but I think I have shown that if the path arg is any absolute path then it hangs. Tried to import to /tmp and it hung(was in a docker, so I was root).

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
dirk-thomascommented, May 31, 2017

Thank you for reporting the problem so quickly!

#44 fixed the regression.The latest version 0.1.27 contains the fix. Depending on where you fetch this package from it might take a bit to appear in the public repos / mirrors.

1reaction
kensleycommented, May 31, 2017

Thanks for the rapid fix Dirk. Is there a unit test we can add to test this?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to setup environment variables for `flask run` on Windows?
If you're on Windows 10, search "View Advanced System Settings." Then click environmental variables, hit new user variable and make it FLASK_APP ...
Read more >
GitLab CI/CD variables
CI/CD variables are a type of environment variable. You can use them to: Control the behavior of jobs and pipelines. Store values you...
Read more >
Environment Variables: What They Are and How To Use Them
Environment variables add dynamicity to your static code base; you can switch between internal/external resources based on the value of the ...
Read more >
Failure Modes · dep
If the issue persists, and you're certain the import path should be deducible, network issues are the first culprit to check. The typical...
Read more >
pipenv Documentation - Read the Docs
The recommended way to install pipenv on most platforms is to install from pypi ... Pipenv will expand environment variables (if defined) in...
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