Laravel-Lang / publisher

Publisher provides functionality for working with application localization
https://laravel-lang.com/packages-publisher.html
MIT License
212 stars 25 forks source link

Problem Installing package for L5.7 #4

Closed jhm-ciberman closed 5 years ago

jhm-ciberman commented 5 years ago

I don't quite understant what I am doing wrong. Laravel Framework 5.7.28

vagrant@homestead:~/code/ce$ composer require andrey-helldar/laravel-lang-publisher --dev
Using version ^1.2 for andrey-helldar/laravel-lang-publisher
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for andrey-helldar/laravel-lang-publisher ^1.2 -> satisfiable by andrey-helldar/laravel-lang
-publisher[v1.2.0, v1.2.1].
    - Can only install one of: caouecs/laravel-lang[dev-laravel58, 3.0.62].
    - Can only install one of: caouecs/laravel-lang[dev-laravel58, 3.0.62].
    - Can only install one of: caouecs/laravel-lang[dev-laravel58, 3.0.62].
    - Conclusion: install caouecs/laravel-lang dev-laravel58
    - Installation request for caouecs/laravel-lang (locked at 3.0.62, required as ~3.0) -> satisfiable by caouecs/laravel-lang[3.0.62].
andrey-helldar commented 5 years ago

Hi! https://github.com/andrey-helldar/laravel-lang-publisher/releases/tag/v1.1.4

This means that in the file composer.json you need to specify the version ^1.0, or enter a command composer require --dev andrey-helldar/laravel-lang-publisher:^1.0

By default, the command composer require installs the latest version of the package, so an error occurs. Due to the peculiarity of the package with translations, this solution was applied.

andrey-helldar commented 5 years ago

From readme.md:

Instead, you may of course manually update your require block and run composer update if you so choose:

{
    "require-dev": {
        "andrey-helldar/laravel-lang-publisher": "^1.0"
    }
}
jhm-ciberman commented 5 years ago

Wow. That was super fast! I will try it when I reach home. Thanks a lot!

El mar., 2 de abr. de 2019 4:08 p. m., Andrey Helldar < notifications@github.com> escribió:

Hi!

https://github.com/andrey-helldar/laravel-lang-publisher/releases/tag/v1.1.4

  • Added hard binding to old versions (5.3-5.7)

This means that in the file composer.json you need to specify the version ^1.0, or enter a command composer require --dev andrey-helldar/laravel-lang-publisher:^1.0

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/andrey-helldar/laravel-lang-publisher/issues/4#issuecomment-479152372, or mute the thread https://github.com/notifications/unsubscribe-auth/AHnkf4wUw73wgDgLpePbEHQRpUah93dYks5vc6qWgaJpZM4cYz8o .

andrey-helldar commented 5 years ago

Well, I still do not sleep :-)

jhm-ciberman commented 5 years ago

I updated it now and it works like a charm :) Thanks!

andrey-helldar commented 5 years ago

You're welcome!

andrey-helldar commented 5 years ago

Now to install the package on Laravel version 5.3-5.7, the composer will correctly determine the allowed version of the 1st series (^1.0).

To install the package on Laravel 5.8 and higher, use version ^2.0.

And see compatibility table.