Skip to content
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

Package deps cannot work with version semver #4486

Closed
star-hengxing opened this issue Dec 11, 2023 · 2 comments
Closed

Package deps cannot work with version semver #4486

star-hengxing opened this issue Dec 11, 2023 · 2 comments
Labels
Milestone

Comments

@star-hengxing
Copy link
Contributor

star-hengxing commented Dec 11, 2023

Xmake Version

v2.8.5+HEAD.debbd3ac3

Operating System Version and Architecture

all

Describe Bug

$ xmake f -c
error: package(zlib/latest:{"vs_runtime=MT"}): conflict dependences with package(zlib/>=v1.2.13:{"vs_runtime=MT"}) in test!

Expected Behavior

Work.

Project Configuration

package("foo")
    add_deps("zlib >=v1.2.13")

package_end()

package("bar")
    add_deps("zlib")

package_end()

package("test")
    add_deps("foo", "bar")

package_end()

add_requires("test")

Additional Information and Error Logs

stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:923]: in function 'raiselevel'
    [@programdir\core\sandbox\modules\utils.lua:149]: in function 'assert'
    [@programdir\modules\private\action\require\impl\package.lua:1018]: in function '_check_package_depconflicts'
    [@programdir\modules\private\action\require\impl\package.lua:1246]: in function 'load_packages'
    [...modules\private\action\require\impl\install_packages.lua:659]:
    [@programdir\modules\private\action\require\install.lua:85]:
    [@programdir\actions\config\main.lua:386]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [@programdir\core\base\task.lua:501]: in function 'run'
    [@programdir\core\main.lua:307]: in function 'cotask'
    [@programdir\core\base\scheduler.lua:404]:

stack traceback:
        [C]: in function 'error'
        @programdir\core\base\os.lua:923: in function 'os.raiselevel'
        (...tail calls...)
        @programdir\core\main.lua:309: in upvalue 'cotask'
        @programdir\core\base\scheduler.lua:404: in function <@programdir\core\base\scheduler.lua:397>
@waruqi
Copy link
Member

waruqi commented Nov 29, 2024

可以了 #5901

不过你这里有点问题,目前不支持带 v前缀的 范围版本选择的。。"zlib >=v1.2.13" 得改成 "zlib >=1.2.13"

@Issues-translate-bot
Copy link

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


It’s ok #5901

But you have a problem here. Currently, range version selection with v prefix is ​​not supported. . "zlib >=v1.2.13" must be changed to "zlib >=1.2.13"

@waruqi waruqi closed this as completed Nov 29, 2024
@waruqi waruqi added this to the v2.9.7 milestone Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants