这是indexloc提供的服务,不要输入任何密码
Skip to content

Windows: TUP_CWD invalid when Tupfile depth >= 2 #515

@usrlocalben

Description

@usrlocalben

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

THE_ROOT=$(TUP_CWD)

/foo/bar/Tupfile

include_rules

: |> $(THE_ROOT)\wvenv\Scripts\python --help > %o |> help.txt
[ 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions