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
Describe the bug
When using vcs_tag with a custom command, the command is executed with current working dir set to the source directory. I guess that is intentional as it makes things easier when dealing with commands like git. However, when arguments provided in the command are file objects (which is needed if they should end up as a dependency), these file objects are passed as a path to the command, that is relative to the build directory (not the current working directory), thus the path is not found.
$ meson setup build
$ meson compile -C build
/usr/bin/python3: can't open file '<source root>/../test.py': [Errno 2] No such file or directory
Expected behavior
The file parameter should be provided relative to CWD at execution time, that is relative to the source directory, not the build directory. At the same time the dependency in the build.ninja file must remain relative to the build directory for ninja to correctly represent it.
system parameters
Meson 1.7.0 on Debian sid.
The text was updated successfully, but these errors were encountered:
Describe the bug
When using
vcs_tag
with a custom command, the command is executed with current working dir set to the source directory. I guess that is intentional as it makes things easier when dealing with commands likegit
. However, when arguments provided in the command are file objects (which is needed if they should end up as a dependency), these file objects are passed as a path to the command, that is relative to the build directory (not the current working directory), thus the path is not found.To Reproduce
meson.build:
test.in:
test.py
Expected behavior
The file parameter should be provided relative to CWD at execution time, that is relative to the source directory, not the build directory. At the same time the dependency in the build.ninja file must remain relative to the build directory for ninja to correctly represent it.
system parameters
Meson 1.7.0 on Debian sid.
The text was updated successfully, but these errors were encountered: