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

Laravel 5.6 and Symfony Console #35

Open
sonnysavage opened this issue Mar 29, 2018 · 4 comments
Open

Laravel 5.6 and Symfony Console #35

sonnysavage opened this issue Mar 29, 2018 · 4 comments

Comments

@sonnysavage
Copy link

I'm using Laravel 5.6.*. It's in my composer.json as: "laravel/framework": "~5.6.0". As a result, it requires "symfony/console": "~4.0" in my composer.lock file.

When I try to install: composer require joegreen0991/db-sync --dev

I get this error:

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for joegreen0991/db-sync ^3.3 -> satisfiable by joegreen0991/db-sync[v3.3.0].
    - Conclusion: remove symfony/console v4.0.6
    - Conclusion: don't install symfony/console v4.0.6
    - joegreen0991/db-sync v3.3.0 requires symfony/console ^3.2 -> satisfiable by symfony/console[v3.2.0, v3.2.1, v3.2.10, v3.2.11, v3.2.12, v3.2.13, v3.2.14, v3.2.2, v3.2.3, v3.2.4, v3.2.5, v3.2.6, v3.2.7, v3.2.8, v3.2.9, v3.3.0, v3.3.1, v3.3.10, v3.3.11, v3.3.12, v3.3.13, v3.3.14, v3.3.15, v3.3.16, v3.3.2, v3.3.3, v3.3.4, v3.3.5, v3.3.6, v3.3.7, v3.3.8, v3.3.9, v3.4.0, v3.4.1, v3.4.2, v3.4.3, v3.4.4, v3.4.5, v3.4.6].
    - Can only install one of: symfony/console[v3.2.0, v4.0.6].
    - Can only install one of: symfony/console[v3.2.1, v4.0.6].
    - Can only install one of: symfony/console[v3.2.10, v4.0.6].
    - Can only install one of: symfony/console[v3.2.11, v4.0.6].
    - Can only install one of: symfony/console[v3.2.12, v4.0.6].
    - Can only install one of: symfony/console[v3.2.13, v4.0.6].
    - Can only install one of: symfony/console[v3.2.14, v4.0.6].
    - Can only install one of: symfony/console[v3.2.2, v4.0.6].
    - Can only install one of: symfony/console[v3.2.3, v4.0.6].
    - Can only install one of: symfony/console[v3.2.4, v4.0.6].
    - Can only install one of: symfony/console[v3.2.5, v4.0.6].
    - Can only install one of: symfony/console[v3.2.6, v4.0.6].
    - Can only install one of: symfony/console[v3.2.7, v4.0.6].
    - Can only install one of: symfony/console[v3.2.8, v4.0.6].
    - Can only install one of: symfony/console[v3.2.9, v4.0.6].
    - Can only install one of: symfony/console[v3.3.0, v4.0.6].
    - Can only install one of: symfony/console[v3.3.1, v4.0.6].
    - Can only install one of: symfony/console[v3.3.10, v4.0.6].
    - Can only install one of: symfony/console[v3.3.11, v4.0.6].
    - Can only install one of: symfony/console[v3.3.12, v4.0.6].
    - Can only install one of: symfony/console[v3.3.13, v4.0.6].
    - Can only install one of: symfony/console[v3.3.14, v4.0.6].
    - Can only install one of: symfony/console[v3.3.15, v4.0.6].
    - Can only install one of: symfony/console[v3.3.16, v4.0.6].
    - Can only install one of: symfony/console[v3.3.2, v4.0.6].
    - Can only install one of: symfony/console[v3.3.3, v4.0.6].
    - Can only install one of: symfony/console[v3.3.4, v4.0.6].
    - Can only install one of: symfony/console[v3.3.5, v4.0.6].
    - Can only install one of: symfony/console[v3.3.6, v4.0.6].
    - Can only install one of: symfony/console[v3.3.7, v4.0.6].
    - Can only install one of: symfony/console[v3.3.8, v4.0.6].
    - Can only install one of: symfony/console[v3.3.9, v4.0.6].
    - Can only install one of: symfony/console[v3.4.0, v4.0.6].
    - Can only install one of: symfony/console[v3.4.1, v4.0.6].
    - Can only install one of: symfony/console[v3.4.2, v4.0.6].
    - Can only install one of: symfony/console[v3.4.3, v4.0.6].
    - Can only install one of: symfony/console[v3.4.4, v4.0.6].
    - Can only install one of: symfony/console[v3.4.5, v4.0.6].
    - Can only install one of: symfony/console[v3.4.6, v4.0.6].
    - Installation request for symfony/console (locked at v4.0.6) -> satisfiable by symfony/console[v4.0.6].


Installation failed, reverting ./composer.json to its original content.

It appears that @vamsweth was able to work around the issue somehow as noted in #32, but the solution is not clear to me.

@jpkare
Copy link

jpkare commented Apr 27, 2018

Same problem. Is it possible to update package to use symfony/console v4.0.8?

@sonnysavage
Copy link
Author

sonnysavage commented Apr 27, 2018

@jpkare I gave up on using this project.

I discovered pt-table-sync in the Percona Toolkit, and started testing that solution, but my data just changed too frequently for that to work well.

As you can see from the Stack Overflow post I created, I ended up using Percona XtraBackup to do daily full backups and restore my development environment with those. I'm using Amazon S3 for the backup file storage. Restoring my development environment takes about a minute and a half, which includes:

  • download the backup archive
  • unpack the archive
  • stop Laravel
  • stop MySQL
  • delete MySQL files
  • move in new MySQL files
  • start MySQL
  • start Laravel
  • remove the archive

@jpkare
Copy link

jpkare commented Apr 27, 2018

Thanks @sonnysavage. In my case, I need to sincro a few tables to execute some data elaboration tasks in a Laravel environment. I think db-sync do my case.
@mrjgreen is it possible to upgrade package to use symfony/console v4.0.8?

Thanks in advance.

@sayajin101
Copy link

I have the same issue, please advise @mrjgreen

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

3 participants