我在爲packagist添加新軟件包版本時遇到問題。如何將新包版本添加到Packagist?
https://github.com/skydriver/stripe-request https://packagist.org/packages/skydriver/stripe-request
我的項目是在Git的樞紐(網絡掛接),併成功加入開發版本,並第一個發行版本packagist,但是當我嘗試創建新的版本,則它不會顯示在packagist ...這是我的git日誌:
[email protected]:~/www/projects/stripe/new-release$ git clone https://github.com/skydriver/stripe-request.git
Cloning into 'stripe-request'...
remote: Counting objects: 38, done.
remote: Compressing objects: 100% (29/29), done.
remote: Total 38 (delta 15), reused 21 (delta 5), pack-reused 0
Unpacking objects: 100% (38/38), done.
Checking connectivity... done.
...
[email protected]:~/www/projects/stripe$ cd new-release/stripe-request/
[email protected]:~/www/projects/stripe/new-release/stripe-request$ git add .
[email protected]:~/www/projects/stripe/new-release/stripe-request$ git commit -m "New release"
[master fc9a023] New release
1 file changed, 349 insertions(+)
create mode 100644 StripeRequest.php
[email protected]:~/www/projects/stripe/new-release/stripe-request$ git push origin master
Username for 'https://github.com': SkyDriver
Password for 'https://[email protected]':
Counting objects: 4, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 2.42 KiB | 0 bytes/s, done.
Total 3 (delta 1), reused 0 (delta 0)
To https://github.com/skydriver/stripe-request.git
4ea2a02..fc9a023 master -> master
[email protected]:~/www/projects/stripe/new-release/stripe-request$ git tag -a 1.0.2
[email protected]:~/www/projects/stripe/new-release/stripe-request$ git push --tags
Username for 'https://github.com': SkyDriver
Password for 'https://[email protected]':
Counting objects: 1, done.
Writing objects: 100% (1/1), 175 bytes | 0 bytes/s, done.
Total 1 (delta 0), reused 0 (delta 0)
To https://github.com/skydriver/stripe-request.git
* [new tag] 1.0.2 -> 1.0.2
[email protected]:~/www/projects/stripe/new-release/stripe-request$
有人能幫助我嗎?
謝謝。
非常感謝Jasper! 現在,它正常工作。問題出在composer.json文件的版本中。 我應該更多地瞭解「如何使用作曲家」。 :) 再次感謝! 此致敬禮。 –
Np!如果您有關於作曲家的問題,請查閱'@ rdohms'(在twitter上)或'@ seldaek'(作者)!他們真的很好。或當然使用SO :) –
太棒了!很高興知道:)爲我工作以及.. – rocky