Skip to content

#7245 breaks xmake-repo #7265

@apocelipes

Description

@apocelipes

Xmake 版本

latest dev branch

操作系统版本和架构

all systems

描述问题

Before #7245, packages like wgpu-native that do not add version information for all platforms can pass tests normally on platforms where version information is not added, typically outputting no testable packages on xxx-os!.

After that PR, now it reports errors:

Image
{
  "wgpu-native v27.0.4+0"
}

/private/var/folders/b_/3j68y0054y34m2vs9g58ysjw0000gn/T/.xmake501/260126/xmake-repo/test
add local repository(local-repo): /Users/apocelipes/projects/xmake-repo ok!
local repositories:
    local-repo /Users/apocelipes/projects/xmake-repo

global repositories:
    xmake-repo https://gitee.com/tboox/xmake-repo.git master
    builtin-repo /Users/apocelipes/projects/xmake/xmake/repository

3 repositories were found!
checking for architecture ... arm64
checking for Xcode directory ... /Applications/Xcode.app
checking for Codesign Identity of Xcode ... no
checking for Mobile Provision of Xcode ... no
checking for SDK version of Xcode for iphoneos (arm64) ... 26.2
checking for Minimal target version of Xcode for iphoneos (arm64) ... 26.2
configure
{
    ccache = true
    builddir = build
    arch = arm64
    host = macosx
    xcode = /Applications/Xcode.app
    clean = true
    plat = iphoneos
    ndk_stdcxx = true
    kind = static
    mode = release
}
testing to load packages ...
  > if it causes errors, please remove assert/raise() to on_check.
checking for git ... /usr/bin/git
checking for gzip ... /usr/bin/gzip
checking for tar ... /usr/bin/tar
The package info of project:
/usr/bin/git rev-parse HEAD
error: @programdir/core/main.lua:274: @programdir/modules/private/action/require/impl/package.lua:442: package(nil): no available schemes
stack traceback:
    [C]: in function 'error'
    [@programdir/core/base/os.lua:1125]: in function 'raiselevel'
    [@programdir/core/sandbox/modules/utils.lua:144]: in function 'assert'
    [@programdir/modules/private/action/require/impl/package.lua:442]: in function '_select_package_version'
    [@programdir/modules/private/action/require/impl/package.lua:993]: in function '_load_package'
    [@programdir/modules/private/action/require/impl/package.lua:1100]: in function '_load_packages'
    [@programdir/modules/private/action/require/impl/package.lua:1638]: in function 'load_packages'
    [@programdir/modules/private/action/require/info.lua:88]:
    [@programdir/actions/require/main.lua:112]:
    [C]: in function 'xpcall'
    [@programdir/core/base/utils.lua:258]:
    [@programdir/core/base/task.lua:495]: in function 'run'
    [@programdir/core/main.lua:272]: in function 'cotask'
    [@programdir/core/base/scheduler.lua:514]:

stack traceback:
        [C]: in function 'error'
        @programdir/core/base/os.lua:1125: in function 'base/os.raiselevel'
        (...tail calls...)
        @programdir/core/main.lua:274: in upvalue 'cotask'
        @programdir/core/base/scheduler.lua:514: in function <@programdir/core/base/scheduler.lua:507>

Even if you block the platform in on_install and on_check, xmake will still report this error.

Test Command:

xmake l ./scripts/test.lua -vD -p iphoneos "wgpu-native v27.0.2+0"

期待的结果

I expect the behavior to remain the same as before, with some packages only released for specific platforms, and there is no guarantee of a universally applicable version information.

工程配置

See: xmake-io/xmake-repo#9191

附加信息和错误日志

See: xmake-io/xmake-repo#9191

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions