有关package()和add_version()的书写规范
#7028
Replies: 1 comment 1 reply
-
|
branch 没有固定版本,所以一般是用户端使用。如果当时 ci 测的 dev 分支能过,然后用户测的 dev 分支已经不是同一个 commit 了,那 ci 测试就没用了,所以 add_versions 一般是 commit hash/tag。 另外 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
为#7021 (comment) 的 继续讨论:
不是很理解,根据https://xmake.io/zh/guide/project-configuration/add-packages.html#%E7%AE%80%E4%BB%8B ,
add_require("xxx", "branch-version")应该是add_require("xxx branch-version")吧?add_versions("branch-version", "commit") 前一个应该不能指定branch,后面commit的位置才能指定branch吧?如果是这样,后面的commit该如何与branch组合呢?(需要指定checkout到某个branch的某个commit)
其他问题:
请问是指:
add_requires("stdexec main") -- main branch
add_requires("stdexec xxxxxxxxxxxxxxxxxxxxx") -- default branch xxxxxxxxxxxxxxxxxxxxx commit
这样吗?
也就是说,本地自己打包的话,只要有add_urls("https://github.com/NVIDIA/stdexec.git")就行了,不一定要在package()中指定add_versions()吗?
但是还有一种情况,我可能没有表达清楚:
Beta Was this translation helpful? Give feedback.
All reactions