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

Prerelease matching #4

Open
Mosney opened this issue Dec 2, 2019 · 2 comments
Open

Prerelease matching #4

Mosney opened this issue Dec 2, 2019 · 2 comments

Comments

@Mosney
Copy link

Mosney commented Dec 2, 2019

https://glare.now.sh/vernesong/OpenClash/^luci-app-openclash.*\.ipk$
404

https://glare.now.sh/vernesong/OpenClash/luci-app-openclash_0.35.5-beta_all.ipk
{"github_api_msg":{"documentation_url":"https://developer.github.com/v3/repos/releases/#get-the-latest-release","message":"Not Found"},"message":"error from GitHub API"}

@Contextualist
Copy link
Owner

Contextualist commented Dec 3, 2019

项目 vernesong/OpenClash 到目前为止没有任何的 stable releases,仅存在 prerelease。Glare 当前的 latest release 和 semver 的匹配原则是仅匹配 stable release。Prerelease 只能显式指定,如curl https://glare.now.sh/vernesong/[email protected]/^luci-app-openclash.*\.ipk$

或许可以考虑加入对 prerelease 的匹配,但我想考虑一下这样对当前匹配逻辑的整体影响和向后兼容性。欢迎谈谈你的想法。另参见 node-semver · prerelease-tags

Repository vernesong/OpenClash does not have any stable releases but prereleases so far. Glare's current latest release and semver matching rules only concern stable releases. Prerelease can only be designated explicitly (e.g. curl https://glare.now.sh/vernesong/[email protected]/^luci-app-openclash.*\.ipk$)

We might support prerelease matching in the future, but that will potentially impact the vision of this project and backward compatibility. Any thoughts are welcome. See also node-semver · prerelease-tags.

@Contextualist Contextualist changed the title 遇到一个失败个例 404NotFound Prerelease matching Dec 3, 2019
@Mosney
Copy link
Author

Mosney commented Dec 8, 2019

既然支持显式指定,是否可以用
https://glare.now.shxxx/yyy@all
https://glare.now.shxxx/yyy@release
https://glare.now.shxxx/yyy@prerelease
等类似的格式来更改匹配范围,默认保持匹配release,保障前向兼容性。

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

No branches or pull requests

2 participants