You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TUP_CWD uses Unix / separator char on Windows. If a Tupfile is in the root, or one dir deep, it's OK because TUP_CWD is just e.g. ... However, if the Tupfile is two or more dirs deep, then it is e.g. ../.. and makes an invalid command exe.
Alternatively/Additionally it could be that the mixed separator should be OK, but there is a problemat the exec/system() call.
[ tup ] [0.110s] Executing Commands...
* 0) foo\bar: ../..\wvenv\Scripts\python --help > help.txt
'..' is not recognized as an internal or external command,
operable program or batch file.
*** tup messages ***
*** Command ID=1432 failed with return value 1
The text was updated successfully, but these errors were encountered:
I dug a little deeper.
Reading the code, I see that pipe > causes it to use cmd.exe to evaluate the command. (I guess, it's unclear at a glance what's going on w/ run_in_bash)
If I modify my command to use an output argument (instead of stdout + pipe) it works OK.
I'm tempted to close, but it still seems like there's an issue here. The command abstraction is leaking impl. details depending on the pipe.
TUP_CWD uses Unix
/
separator char on Windows. If a Tupfile is in the root, or one dir deep, it's OK because TUP_CWD is just e.g...
. However, if the Tupfile is two or more dirs deep, then it is e.g.../..
and makes an invalid command exe.Alternatively/Additionally it could be that the mixed separator should be OK, but there is a problemat the exec/system() call.
/Tuprules.tup
/foo/bar/Tupfile
The text was updated successfully, but these errors were encountered: