xmake-io / xmake

🔥 A cross-platform build utility based on Lua
https://xmake.io
Apache License 2.0
9.87k stars 776 forks source link

xrepo info cpr执行出错 #5555

Closed heheda123123 closed 3 weeks ago

heheda123123 commented 3 weeks ago

Xmake 版本

v2.9.4+dev.0d2bd1503

操作系统版本和架构

windows 11

描述问题

看这里的报错,cpr依赖libcurl,xrepo info libcurl也会出错 xrepo info 其他的包时目前是正常的

PS C:\Users\Administrator\code> xrepo info cpr
The package info of project:
    require(cmake):
      -> description: A cross-platform family of tool designed to build, test and package software
      -> version: 3.30.2
      -> urls:
         -> https://cmake.org/files/v3.30/cmake-3.30.2-windows-x86_64.zip
            -> 48bf4b3dc2d668c578e0884cac7878e146b036ca6b5ce4f8b5572f861b004c25
         -> https://github.com/Kitware/CMake/releases/download/v3.30.2/cmake-3.30.2-windows-x86_64.zip
            -> 48bf4b3dc2d668c578e0884cac7878e146b036ca6b5ce4f8b5572f861b004c25
      -> repo: xmake-repo https://gitee.com/tboox/xmake-repo.git master
      -> cachedir: C:\Users\Administrator\AppData\Local\.xmake\cache\packages\2409\c\cmake\3.30.2
      -> installdir: C:\Users\Administrator\AppData\Local\.xmake\packages\c\cmake\3.30.2\2b80cef30074424181b5e19a46ef30fc
      -> searchdirs:
      -> searchnames:
         -> cmake-3.30.2.zip
         -> cmake-3.30.2-windows-x86_64.zip
      -> fetchinfo: 3.30.2, system
          -> name: cmake
          -> program: cmake
          -> version: 3.30.2
      -> platforms: @macosx, @msys, @windows, @linux, @cygwin, @bsd
      -> requires:
         -> plat: windows
         -> arch: x64
         -> configs:
            -> runtimes: MT
            -> shared: false
            -> pic: true
            -> debug: false
      -> configs:
      -> configs (builtin):
         -> debug: Enable debug symbols. (default: false)
         -> shared: Build shared library. (default: false)
         -> pic: Enable the position independent code. (default: true)
         -> lto: Enable the link-time build optimization. (type: boolean)
         -> asan: Enable the address sanitizer. (type: boolean)
         -> runtimes: Set the compiler runtimes.
            -> values: {"MT","MTd","MD","MDd","c++_static","c++_shared","stdc++_static","stdc++_shared"}
         -> vs_runtime: Set vs compiler runtime.
            -> values: {"MT","MTd","MD","MDd"}
         -> toolchains: Set package toolchains only for cross-compilation.
         -> cflags: Set the C compiler flags.
         -> cxflags: Set the C/C++ compiler flags.
         -> cxxflags: Set the C++ compiler flags.
         -> asflags: Set the assembler flags.
         -> ldflags: Set the binary linker flags.
         -> shflags: Set the shared library linker flags.

    require(libcurl):
      -> description: The multiprotocol file transfer library.
      -> version: 8.7.1
      -> license: MIT
error: 'versions' can only be initied in on_source() or the description scope.
error: execv(C:\Users\Administrator\xmake\xmake.exe require --info --extra={system=false} cpr) failed(-1)
PS C:\Users\Administrator\code> 

期待的结果

正确列出cpr包的信息

工程配置

不需要

附加信息和错误日志

上面已给

Issues-translate-bot commented 3 weeks ago

Bot detected the issue body's language is not English, translate it automatically.


Title: xrepo info cpr execution error

heheda123123 commented 3 weeks ago

看报错,应该就是这几行的某种写法现在不支持了 b57c0771fbc753a215d739a0c034ca6b

Issues-translate-bot commented 3 weeks ago

Bot detected the issue body's language is not English, translate it automatically.


Looking at the error report, it seems that a certain way of writing these lines is not supported now. b57c0771fbc753a215d739a0c034ca6b

waruqi commented 3 weeks ago

可以了,更新到 Dev

Issues-translate-bot commented 3 weeks ago

Bot detected the issue body's language is not English, translate it automatically.


OK, update to Dev