Closed AidanSun05 closed 2 weeks ago
But it works for me.
PS C:\Users\wangrunqing\Downloads\test91> xmake
checking for Microsoft Visual Studio (x64) version ... 2022
checking for Microsoft C/C++ Compiler (x64) version ... 19.41.33923
updating repositories .. ok
note: install or modify (m) these packages (pass -y to skip confirm)?
in xmake-repo:
-> utfcpp v4.0.5
please input: y (y/n/m)
=> download https://github.com/nemtrif/utfcpp/archive/refs/tags/v4.0.5.tar.gz .. ok
=> install utfcpp v4.0.5 .. ok
[ 50%]: compiling.release src\main.cpp
[ 75%]: linking.release test.exe
[100%]: build ok, spent 0.906s
PS C:\Users\wangrunqing\Downloads\test91> xmake f -p windows -a x64 -m debug -c
checking for Microsoft Visual Studio (x64) version ... 2022
checking for Microsoft C/C++ Compiler (x64) version ... 19.41.33923
PS C:\Users\wangrunqing\Downloads\test91> xmake f -p windows -a x64 -m debug -c
checking for Microsoft Visual Studio (x64) version ... 2022
checking for Microsoft C/C++ Compiler (x64) version ... 19.41.33923
PS C:\Users\wangrunqing\Downloads\test91> xmake l io.readfile xmake-requires.lock
"{
__meta__ = {
version = "1.0"
},
["windows|x64"] = {
["cmake#31fecfc4"] = {
repo = {
branch = "master",
commit = "e8e9c3380b4aec761f781927c2434b75db50aa90",
url = "https://gitee.com/tboox/xmake-repo.git"
},
version = "3.29.0-rc1"
},
["utfcpp#31fecfc4"] = {
repo = {
branch = "master",
commit = "e8e9c3380b4aec761f781927c2434b75db50aa90",
url = "https://gitee.com/tboox/xmake-repo.git"
},
version = "v4.0.5"
}
}
}"
Are you using the dev version now? I remember just recently fixing a require lock bug that could cause you to reinstall locked packages. You need to reinstall the locked packages.
I tried the latest dev version (v2.9.4+dev.2a2ee54fe
) and this is what I noticed:
Interestingly, I could not reproduce this on macOS even with the same dev version: the lock file (with windows|x64
replaced with macosx|arm64
) is never cleared when the configure command runs (xmake f -p macosx -a arm64 -m debug -c
). Is this varying behavior intended?
try this patch. https://github.com/xmake-io/xmake/pull/5539
Thanks, the lock file is now retained throughout the entire process of configuring and installing packages. This is consistent with the expected behavior.
Xmake Version
xmake v2.9.4+HEAD.e85b001f1
Operating System Version and Architecture
Windows 11 Pro 23H2 x64
Describe Bug
On Windows, when configuring with
xmake f ...
in a project that has anxmake-requires.lock
file, thewindows|x64
entry in the file is cleared. This does not happen on other operating systems such as macOS 14.6.After running
xmake f -p windows -a x64 -m debug -c
,xmake-requires.lock
is:Expected Behavior
The contents of the lock file are kept and xmake installs dependencies from the lock file.
Project Configuration
xmake.lua
:xmake-requires.lock
:src/main.cpp
:Additional Information and Error Logs
Output of
xmake f -p windows -a x64 -m debug -c -vD
: