-
-
Notifications
You must be signed in to change notification settings - Fork 824
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lock file is cleared when configuring on Windows #5532
Comments
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 (
Interestingly, I could not reproduce this on macOS even with the same dev version: the lock file (with |
try this patch. #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
:The text was updated successfully, but these errors were encountered: