-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
git.bat not picked up on dbt deps #3035
Comments
@majidaldo Just to clarify, you're encountering an error when you run |
ah sorry. yes. |
Ok! And if I understand your original message, are you saying that you're able to resolve the |
...well, depend on how you guys want to structure subprocess calls. The way you have it is that |
FYI, with |
Ok, this one is a little bit beyond me. @kwigley When you have a moment, could I ask for your sense-check here? |
bump. this should be straightforward. |
@majidaldo Is this a fix you'd be interested in contributing? I'd welcome a PR for it, if you don't mind explaining the system/security implications of the proposed changes. |
* (explicitly) find the executable before running run_cmd #3035 * fix undefined var * use Executable to say exe not found and use full pth to exe * changelog for #3035 * Nest shutil.which for better error msg Co-authored-by: Majid alDosari <[email protected]> Co-authored-by: Kyle Wigley <[email protected]>
ref. #1110
I have reasons to wrap my executables. On Windows I wrap my executables in
.bat
scripts (to get a similar effect to.sh
). But thenPopen( ['git'] )
doesn't work.Popen( ['git.bat'])
works.So the platform-independent way to get
git
to work is to useshutil.which
to get the full path to the exe.Popen([ which('git') ], )
works.The text was updated successfully, but these errors were encountered: