z-applocal fails on Linux
```shell
sqlite3$ vcpkg z-applocal --target-binary=tools/sqlite3.exe --installed-bin-dir=bin
tools/sqlite3.exe: message: deploying dependencies
/tmp/sqlite3/bin/sqlite3.dll -> tools/sqlite3.dll skipped, up to date
tools/sqlite3.dll: message: deploying dependencies
Failed to read 2 bytes from tools/sqlite3.dll at offset 0.
```
It creates a empty `sqlite3.dll` instead of copying.
Debugged into the z-applocal command, the empty file is created at
https://github.com/microsoft/vcpkg-tool/blob/4e52b9a97ddc018fa1b3d597e48bae7d4bc7799e/src/vcpkg/base/files.cpp#L3870
and then `copy_file` early returned at
https://github.com/microsoft/vcpkg-tool/blob/4e52b9a97ddc018fa1b3d597e48bae7d4bc7799e/src/vcpkg/base/files.cpp#L3900-L3904
Attached `sqlite3.exe` and its dependency `sqlite3.dll`.
[sqlite3.zip](https://github.com/user-attachments/files/29514854/sqlite3.zip)
0 条评论