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

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

包名:yuecode/uvs

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

目前出现的错误如下:

file
file

bestony
《L03 构架 API 服务器》
你将学到如 RESTFul 设计风格、PostMan 的使用、OAuth 流程,JWT 概念及使用 和 API 开发相关的进阶知识。
《G01 Go 实战入门》
从零开始带你一步步开发一个 Go 博客项目,让你在最短的时间内学会使用 Go 进行编码。项目结构很大程度上参考了 Laravel。
讨论数量: 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年前 评论

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