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

依赖的 yamlkt 与 mirai-console 中 vendor 的 yamlkt 冲突 #661

Closed
ProgramRipper opened this issue Dec 19, 2022 · 1 comment
Closed

Comments

@ProgramRipper
Copy link
Contributor

ProgramRipper commented Dec 19, 2022

ref: yyuueexxiinngg/onebot-kotlin#166 #652 #653

先说结论:mirai-api-http 也 vendor 一个 yamlkt 吧 还是社区协调好依赖应该如何处理吧,考虑到 onebot-mirai 已然缺少更新和维护的动力,可以考虑放弃对它的兼容。

v2.7.0 前

mirai-console 和 onebot-mirai 都 vendor 了 yamlkt,导致 mirai-api-http 同时使用了两者的 yamlkt,因此报错。

v2.7.0 后

这一 更改 不仅没有解决问题,反而让问题更加严重:即使在没有 onebot-mirai,仅使用 mirai-api-http 的情况下,也会有两个 yamlkt(mirai-console 中 vendor 的,和 mirai-console 为 mirai-api-http 另外下载的),于是发生了同样的问题,直接导致 mirai-api-http 不可用。

- api("net.mamoe.yamlkt:yamlkt:0.10.2")
- compileOnly("net.mamoe.yamlkt:yamlkt:0.9.0")
+ testImplementation("net.mamoe.yamlkt:yamlkt:0.12.0")
+ implementation("net.mamoe.yamlkt:yamlkt:0.12.0")
@zhuaoshuai13
Copy link

我是笨蛋,请问应该如何修改,才能解决这个问题呢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants