Skip to content

BUG Can't install the newest 4.0.0-beta1 version via composer #34

@Valandur

Description

@Valandur

Describe the bug
Installing the newest 4.0.0-beta1 release (directly or as a requirement of dynamic/silverstripe-elemental-gallery @ 4.0.0-beta1) results in a composer error:

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

because of:

dynamic/silverstripe-elemental-gallery[4.0.0-beta1, ..., 4.x-dev] require dynamic/silverstripe-elemental-baseobject ^4 -> satisfiable by dynamic/silverstripe-elemental-baseobject[4.0.0-alpha1, 4.0.0-beta1, 4.x-dev]
dynamic/silverstripe-elemental-baseobject[4.0.0-beta1, ..., 4.x-dev] require silvershop/silverstripe-hasonefield ^3 -> satisfiable by silvershop/silverstripe-hasonefield[3.0.0, ..., 3.1.0]
silvershop/silverstripe-hasonefield[3.0.0, ..., 3.1.0] require silverstripe/vendor-plugin ^1.0 -> found silverstripe/vendor-plugin[1.0.0, ..., 1.x-dev] but it conflicts with your root composer.json require (^2.0.0)

Most likely because silvershop/silverstripe-hasonefield @ v3 only supports silverstripe/vendor-plugin @ v1, but v2 is required by the silverstripe framework. This module should probably require "silvershop/silverstripe-hasonefield": "^4", since v4 of that module supports using silverstripe/vendor-plugin @ v2.

To Reproduce
Steps to reproduce the behavior:

  1. Create a new SS5 repo
  2. Try to install this module (either directly or as a dependency of another module)

Expected behavior
Module installs successfully

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions