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

Symfony paketleri versiyon problemi #1

Closed
enverarslan opened this issue Jul 6, 2019 · 13 comments
Closed

Symfony paketleri versiyon problemi #1

enverarslan opened this issue Jul 6, 2019 · 13 comments

Comments

@enverarslan
Copy link

Bu paketi Laravel 5.6 üzerinde kullanmak istediğimizde Symfony paketlerinin bağımlılığından dolayı yüklenemiyor.

laravel-pos paketi buna bağımlı ve bu paket de symfony/http-foundation paketinin 4.1 versiyonunu kullanıyor. Eğer symfony/http-foundation paketinin 4.1 versiyonunda spesifik bir kullanım yoksa daha fazla kullanım alanı için bağımlılığı eski versiyonlara güncellemeliyiz.

Laravel 5.6 projesinde yüklemeye çalıştığımda aldığım hata şu:

`
Problem 1
- mews/laravel-pos 0.1.8 requires mews/pos ~0.1.8 -> satisfiable by mews/pos[0.1.8].
- Installation request for mews/laravel-pos ^0.1.8 -> satisfiable by mews/laravel-pos[0.1.8].
- Conclusion: remove symfony/http-foundation v4.0.8
- Conclusion: don't install symfony/http-foundation v4.0.8
- mews/pos 0.1.8 requires symfony/http-foundation ^4.1 -> satisfiable by symfony/http-foundation[4.1.x-dev, 4.2.x-dev, 4.3.x-dev, 4.4.x-dev, v4.1.0, v4.1.0-BETA1, v4.1.0-BETA2, v4.1.0-BETA3, v4.1.1, v4.1.10, v4.1.11, v4.1.12, v4.1.2, v4.1.3, v4.1.4, v4.1.5, v4.1.6, v4.1.7, v4.1.8, v4.1.9, v4.2.0, v4.2.0-BETA1, v4.2.0-BETA2, v4.2.0-RC1, v4.2.1, v4.2.10, v4.2.2, v4.2.3, v4.2.4, v4.2.5, v4.2.6, v4.2.7, v4.2.8, v4.2.9, v4.3.0, v4.3.0-BETA1, v4.3.0-BETA2, v4.3.0-RC1, v4.3.1, v4.3.2].
- Can only install one of: symfony/http-foundation[4.1.x-dev, v4.0.8].
- Can only install one of: symfony/http-foundation[4.2.x-dev, v4.0.8].
- Can only install one of: symfony/http-foundation[4.3.x-dev, v4.0.8].
- Can only install one of: symfony/http-foundation[4.4.x-dev, v4.0.8].
- Can only install one of: symfony/http-foundation[v4.1.0, v4.0.8].
- Can only install one of: symfony/http-foundation[v4.1.0-BETA1, v4.0.8].
- Can only install one of: symfony/http-foundation[v4.1.0-BETA2, v4.0.8].
- Can only install one of: symfony/http-foundation[v4.1.0-BETA3, v4.0.8].
- Can only install one of: symfony/http-foundation[v4.1.1, v4.0.8].
- Can only install one of: symfony/http-foundation[v4.1.10, v4.0.8].
- Can only install one of: symfony/http-foundation[v4.1.11, v4.0.8].
- Can only install one of: symfony/http-foundation[v4.1.12, v4.0.8].
- Can only install one of: symfony/http-foundation[v4.1.2, v4.0.8].
- Can only install one of: symfony/http-foundation[v4.1.3, v4.0.8].
- Can only install one of: symfony/http-foundation[v4.1.4, v4.0.8].
- Can only install one of: symfony/http-foundation[v4.1.5, v4.0.8].
- Can only install one of: symfony/http-foundation[v4.1.6, v4.0.8].
- Can only install one of: symfony/http-foundation[v4.1.7, v4.0.8].
- Can only install one of: symfony/http-foundation[v4.1.8, v4.0.8].
- Can only install one of: symfony/http-foundation[v4.1.9, v4.0.8].
- Can only install one of: symfony/http-foundation[v4.2.0, v4.0.8].
- Can only install one of: symfony/http-foundation[v4.2.0-BETA1, v4.0.8].
- Can only install one of: symfony/http-foundation[v4.2.0-BETA2, v4.0.8].
- Can only install one of: symfony/http-foundation[v4.2.0-RC1, v4.0.8].
- Can only install one of: symfony/http-foundation[v4.2.1, v4.0.8].
- Can only install one of: symfony/http-foundation[v4.2.10, v4.0.8].
- Can only install one of: symfony/http-foundation[v4.2.2, v4.0.8].
- Can only install one of: symfony/http-foundation[v4.2.3, v4.0.8].
- Can only install one of: symfony/http-foundation[v4.2.4, v4.0.8].
- Can only install one of: symfony/http-foundation[v4.2.5, v4.0.8].
- Can only install one of: symfony/http-foundation[v4.2.6, v4.0.8].
- Can only install one of: symfony/http-foundation[v4.2.7, v4.0.8].
- Can only install one of: symfony/http-foundation[v4.2.8, v4.0.8].
- Can only install one of: symfony/http-foundation[v4.2.9, v4.0.8].
- Can only install one of: symfony/http-foundation[v4.3.0, v4.0.8].
- Can only install one of: symfony/http-foundation[v4.3.0-BETA1, v4.0.8].
- Can only install one of: symfony/http-foundation[v4.3.0-BETA2, v4.0.8].
- Can only install one of: symfony/http-foundation[v4.3.0-RC1, v4.0.8].
- Can only install one of: symfony/http-foundation[v4.3.1, v4.0.8].
- Can only install one of: symfony/http-foundation[v4.3.2, v4.0.8].
- Installation request for symfony/http-foundation (locked at v4.0.8) -> satisfiable by symfony/http-foundation[v4.0.8].

`

@mewebstudio
Copy link
Owner

@enverarslan geç cevap için özür dilerim. Sorunu çözdünüz mü? Güncel birkaç projemde sorunsuz kurulum gerçekleşti ve kullanıyorum.

@enverarslan
Copy link
Author

paketi klonlayıp symfony/http-foundation paketini ve symfony/serializer paketini 4.0.8 versiyonuyla isteyerek çözdüm. bunun için packagiste de atmam gerekti. https://packagist.org/packages/enver/pos

eski versiyonlar için ayrı bir release çıkarabilirseniz silerim paketi bu daha doğru olur.

@mewebstudio
Copy link
Owner

Açıkçası paketi ilk etapta Laravel'den bağımsız şekilde, güncel paketlerle geliştirmiştim. Şimdi kontrol ettim, Laravel 5.7 ile geliştirdiğim projede kullanacağım için de ona uygun şekilde Laravel'e paketlemişim. Sorununuzu bu şekilde çözdüyseniz, sizin oluşturduğunuz paket kalsın, 5.6 projelerde kullanmak isteyenler olabilir. Bu durumda sizin repoya yönlendirmek daha mantıklı :)

@enverarslan
Copy link
Author

genelde böyle durumlar için bağımlılıklara göre paketi farklı versiyonlarla sunuyorlar. açıkçası bir bütünlük sağlamak için paketinizde farklı versiyonlar oluşturursanız daha iyi olur. katkı yapacak insanlar tek paket üzerinde yoğunlaşabilirler böylece.

@mewebstudio
Copy link
Owner

İsterseniz şöyle yapalım; ben bir branch oluşturayım, siz buraya PR gönderin. Sonrasında bunu versiyonlayalım.

@mewebstudio
Copy link
Owner

Yoğunluktan dolayı geç bakabildim, kusura bakmayın. Yeni bir branch oluşturdum.
https://github.com/mewebstudio/pos/tree/master-old-pkg

Laravel paketi için de aynı şekilde bir branch oluşturdum.
https://github.com/mewebstudio/laravel-pos/tree/master-old-pkg

Gerekli ayarlamaları fırsat bulduğunuzda yapıp PR gönderirseniz, onların versiyonlamasını da yaparım.

Kolay gelsin.

@enverarslan
Copy link
Author

#3

Sorun değil, Laravel paketinde bir değişiklik yok aslında, pos paketi düzelince o da çalışacaktır. Ona bir istek atmıyorum bu yüzden.

İyi çalışmalar.

@mewebstudio
Copy link
Owner

mewebstudio commented Aug 22, 2019

Merge ettim. Versiyonlama için bir öneriniz var mı? Şunun için soruyorum; master-old-pkg branch'ı için ayrı bir versiyon tag oluşturmak gerekiyor sanırım. Master branch'ında son versiyon 0.1.8. master-old-pkg için ne yapmamız uygun olur?

@enverarslan
Copy link
Author

Buradaki çözüm composer'a uygun şekilde versiyonlamak olmalı sanırım. Packagist'te iki farklı branch'ten install yapabiliyor muyuz bilmiyorum. Packagist semantik versiyonlamayla çalıştığı için (https://packagist.org/about#managing-package-versions) master-old-pkg branchini masterla birleştirip 0.1.9 etiketleyerek gönderebilirsiniz. güncel versiyonu da 0.2.0 olarak etiketleyerek sunabilirsiniz gibi geliyor.

@mewebstudio
Copy link
Owner

Söylediğiniz şekilde bu branch'ı master ile birleştirirsem, masterda da aynı versiyonlar geçerli olacak. Bu durumda farklı bir branch açmamızın da bir anlamı kalmıyor :)

@enverarslan
Copy link
Author

https://github.com/mcamara/laravel-localization/ şunu inceleyebilirsiniz.

@mewebstudio
Copy link
Owner

mewebstudio commented Aug 27, 2019

Tekrar merhaba. 5.6 ve yeni versiyonlar için farklı build'ler oluşturdum.
Eski versiyonlar için:
https://github.com/mewebstudio/pos/releases/tag/0.2.0
Yeni versiyonlar için:
https://github.com/mewebstudio/pos/releases/tag/0.3.0

Bunlara göre Laravel paketini de güncelledim.
Eski versiyonlar için:
https://github.com/mewebstudio/laravel-pos/releases/tag/0.2.0
Yeni versiyonlar için:
https://github.com/mewebstudio/laravel-pos/releases/tag/0.3.0

Laravel 5.6 için
composer require --no-update "mews/laravel-pos:0.2.0"
composer update
komutuyla yüklenebilir olması gerekiyor.

Test edebilirseniz sevinirim.

@mewebstudio
Copy link
Owner

Konuyu kapatıyorum, problem olursa tekrar açarsınız.

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

No branches or pull requests

2 participants