Composer 发布的包不支持其他版本,只能用 dev-master?

自己尝试改了个包,打算发布到composer,但是目前发布成功后,在使用时出了问题,只能用dev-master,不知道如何解决?

包名:yuecode/uvs

github 库地址 :https://github.com/YueCode/php-uvs

目前出现的错误如下:

file
file

bestony
《L01 基础入门》
我们将带你从零开发一个项目并部署到线上,本课程教授 Web 开发中专业、实用的技能,如 Git 工作流、Laravel Mix 前端工作流等。
《L05 电商实战》
从零开发一个电商项目,功能包括电商后台、商品 & SKU 管理、购物车、订单管理、支付宝支付、微信支付、订单退款流程、优惠券等
讨论数量: 11
Gecco

现在解决了吗?

7年前 评论
bestony

@Gecco 还没有。。。

7年前 评论
Gecco

我require你这个包用dev-master版本的可以,带上版本1.0.0不行,

composer require yuecode/uvs:~1.0.0
  Problem 1
    - The requested package yuecode/uvs ~1.0.0 exists as yuecode/uvs[dev-master] but these are rejected by your constraint.

试了下有赞那个sdk的dev-master也不行。

$ composer require "hanson/youzan-sdk:dev-master"

  Problem 1
    - The requested package hanson/youzan-sdk could not be found in any version, there may be a typo in the package name.

Installation failed, reverting ./composer.json to its original content.
7年前 评论
bestony

@Gecco 我的这个包只能用dev-master,而且dev-master还是旧的commit,要是新的commit我也忍了

7年前 评论
bestony

@Gecco 他们的SDK我测试也不行。。。

7年前 评论
leo

不要用国内镜像,同步慢

7年前 评论
bestony

@leo 果然是国内源的问题。太坑了。

7年前 评论
Gecco

@leo
@bestony
嗯。试过了,国内源是24号更新的

7年前 评论
Gecco

@Gecco 感谢~

7年前 评论

@bestony 国内镜像同步成功的话 大概要等多久啊

5年前 评论

@leo 新打了tag后要等多久才可以更新?

5年前 评论

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!