Problem/Motivation
Installing this module using composer fails:
$ composer require drupal/lagoon_varnish
1/3: https://repo.packagist.org/p/provider-latest$f4bd513b78789d1a950836357a97f38da9b018d8ae9488dd46d73dc763c7147f.json
2/3: https://repo.packagist.org/p/provider-2020-07$3963774fffea774f08736f867083342f9961f758513bc5ee40032b1c62169532.json
3/3: https://repo.packagist.org/p/provider-2020-10$17717aa9db9a256f1a3b246faf6bc2e3a8f33c3ddc57071bcc20db40c64d545b.json
Finished: success: 3, skipped: 0, failure: 0, total: 3
Using version ^1.1 for drupal/lagoon_varnish
./composer.json has been updated
> DrupalProject\composer\ScriptHandler::checkComposerVersion
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
- drupal/lagoon_varnish 1.x-dev requires drupal/varnish_purge_tags * -> satisfiable by drupal/varnish_purge_tags[2.0.0, dev-2.x, 2.x-dev, 1.12.0, 1.11.0, 1.10.0, 1.9.0, 1.8.0, 1.7.0, 1.6.0, 1.5.0, dev-1.x, 1.x-dev, 1.4.0].
- drupal/lagoon_varnish 1.1.0 requires drupal/varnish_purge_tags * -> satisfiable by drupal/varnish_purge_tags[2.0.0, dev-2.x, 2.x-dev, 1.12.0, 1.11.0, 1.10.0, 1.9.0, 1.8.0, 1.7.0, 1.6.0, 1.5.0, dev-1.x, 1.x-dev, 1.4.0].
- drupal/varnish_purge_tags 1.4.0 requires drupal/varnish_purge 1.4.0 -> satisfiable by drupal/varnish_purge[1.4.0] but these conflict with your requirements or minimum-stability.
- drupal/varnish_purge_tags 1.x-dev requires drupal/varnish_purger-varnish_purger * -> no matching package found.
- drupal/varnish_purge_tags dev-1.x requires drupal/varnish_purger-varnish_purger * -> no matching package found.
- drupal/varnish_purge_tags 1.5.0 requires drupal/varnish_purge 1.5.0 -> satisfiable by drupal/varnish_purge[1.5.0] but these conflict with your requirements or minimum-stability.
- drupal/varnish_purge_tags 1.6.0 requires drupal/varnish_purge 1.6.0 -> satisfiable by drupal/varnish_purge[1.6.0] but these conflict with your requirements or minimum-stability.
- drupal/varnish_purge_tags 1.7.0 requires drupal/varnish_purge 1.7.0 -> satisfiable by drupal/varnish_purge[1.7.0] but these conflict with your requirements or minimum-stability.
- drupal/varnish_purge_tags 1.8.0 requires drupal/varnish_purge 1.8.0 -> satisfiable by drupal/varnish_purge[1.8.0] but these conflict with your requirements or minimum-stability.
- drupal/varnish_purge_tags 1.9.0 requires drupal/varnish_purge 1.9.0 -> satisfiable by drupal/varnish_purge[1.9.0] but these conflict with your requirements or minimum-stability.
- drupal/varnish_purge_tags 1.10.0 requires drupal/varnish_purge 1.10.0 -> satisfiable by drupal/varnish_purge[1.10.0] but these conflict with your requirements or minimum-stability.
- drupal/varnish_purge_tags 1.11.0 requires drupal/varnish_purge 1.11.0 -> satisfiable by drupal/varnish_purge[1.11.0] but these conflict with your requirements or minimum-stability.
- drupal/varnish_purge_tags 1.12.0 requires drupal/varnish_purge 1.12.0 -> satisfiable by drupal/varnish_purge[1.12.0] but these conflict with your requirements or minimum-stability.
- drupal/varnish_purge_tags 2.x-dev requires drupal/varnish_purger-varnish_purger * -> no matching package found.
- drupal/varnish_purge_tags dev-2.x requires drupal/varnish_purger-varnish_purger * -> no matching package found.
- drupal/varnish_purge_tags 2.0.0 requires drupal/varnish_purger-varnish_purger * -> no matching package found.
- Installation request for drupal/lagoon_varnish ^1.1 -> satisfiable by drupal/lagoon_varnish[1.x-dev, 1.1.0].
Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your minimum-stability setting
see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.
- It's a private package and you forgot to add a custom repository to find it
Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.
Installation failed, reverting ./composer.json to its original content.
Steps to reproduce
Run $ composer require drupal/lagoon_varnish
Proposed resolution
Add dependencies to composer.json?
Remaining tasks
Figure out how to solve this.
User interface changes
None
API changes
None
Data model changes
None
Issue fork lagoon_varnish-3185313
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
luksakSomehow this didn't fix the issue for me until now. But that might be a composer issue. Applying the patch from the merge request still results in varnish_purge 1.11.0 being installed instead for 1.12.0 or 2.0.0...
Comment #4
luksakvarnish_purge 1.11.0 is causing issues and doesn't purge varnish caches properly. Therefore bumping priority
Comment #5
luksakThe merge request solve the issue for me. As expected my issues were caused by me not handling composer properly.
The issue was not causing my bugs with varnish also that was another issue. Reverting priority to normal.
Comment #6
fjgarlin commentedI could install the module via composer without issues.
Note that the module is not locking any versions of modules, it just lists them on the .info.yml file instead of the composer.json file. What's the issue you're having when varnish_purge is 1.11.0?
Comment #7
fjgarlin commentedI think I found the issue for this. It's the namespacing of the dependencies on the .info.yml file as it changed from varnish_purge to varnish_purger.
Committing a fix.
Comment #9
fjgarlin commentedIt actually seems like a bigger problem from "varnish_purge(r)" module.
See here: https://www.drupal.org/project/varnish_purge/issues/2999913#comment-1376...
Comment #10
fjgarlin commentedIn the end, I needed to comment out these lines:
The modules still need to be enabled, but it's otherwise impossible to install this module.
I also updated the README.txt file with this info. This is all committed to the latest "dev" version.