xmake-io / xmake-repo

📦 An official xmake package repository
https://xrepo.xmake.io
Apache License 2.0
627 stars 377 forks source link

add cpp-channel #4478

Closed heheda123123 closed 1 month ago

heheda123123 commented 1 month ago

为啥都要改成vx.x.x的形式呢,是规范还是看各人倾向?

Issues-translate-bot commented 1 month ago

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


Why do we have to change it to the form of vx.x.x? Is it a standard or does it depend on everyone’s preference?

SirLynix commented 1 month ago

It's to match the tag name, so git cloning works too: image

waruqi commented 1 month ago

为啥都要改成vx.x.x的形式呢,是规范还是看各人倾向?

看当前包对应的 git tag 格式,如果它有 v 前缀,就得带上,主要是为了保证 tag.gz 的 url 和 git url 同时可用,tag.gz 下载失败,回退到 checkout git tag ,还能够正常 checkout 出来。

Issues-translate-bot commented 1 month ago

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


Why do we have to change it to the form of vx.x.x? Is it a standard or does it depend on everyone’s preference?

Look at the git tag format corresponding to the current package. If it has a v prefix, you must bring it. This is mainly to ensure that the url of tag.gz and the git url are available at the same time. If the download of tag.gz fails, fall back to checkout git tag. You can also Checkout normally.