Packagist 跳过了以 -dev 结尾的分支,抱怨它没有以 -dev 结尾

Packagist skipped branch ending in -dev, complaining that is does not end in -dev

这是我在更新包时从 packagist 那里得到的错误:

Importing branch 2.x-dev (dev-2.x-dev)

Skipped branch 2.x-dev, Invalid

package information: extra.branch-alias.dev-master : the target branch (2.x) must end in -dev

分支名为“2.x”- 谁能解释分支名称有什么问题?

我也试过命名分支“2.x-dev”和“2.0”

这是包裹:https://packagist.org/packages/messageagency/force.com-toolkit-for-php

composer.json 中定义的别名不正确 - 它必须以 -dev 结尾,因此您应该使用 "dev-master": "2.x-dev" 之类的东西而不是 "dev-master": "2.x"

查看分支别名的文档:https://getcomposer.org/doc/articles/aliases.md#branch-alias