Skip to content

composer update command fails due to dependency conflict with spatie/laravel-backup and laravel/framework #816

@nyxb

Description

@nyxb

LinkStack version

4.8.0

Description

Issue Description:
I encountered a problem while trying to run composer update -vvv as part of the contribution process.

Steps to Reproduce:

  1. Fork the repository and clone it to your local machine.
  2. Open a terminal in the repository folder.
  3. Run composer update -vvv.

Expected Behavior:

The composer update command should resolve dependencies and update the packages.

Actual Behavior:

The command fails due to a conflict between the spatie/laravel-backup package and the laravel/framework. Here's the relevant part of the error message:

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

Problem 1
    - Root composer.json requires spatie/laravel-backup ^8.17 -> satisfiable by spatie/laravel-backup[v8.x-dev].
    - Conclusion: don't install laravel/framework v9.52.16 (conflict analysis result)
    - spatie/laravel-backup v8.x-dev requires illuminate/support ^10.10.0|^11.0 -> satisfiable by illuminate/support[v10.x, v11.x].

Analysis:

It seems like the spatie/laravel-backup package is requiring versions of illuminate/support that are incompatible with the current laravel/framework version (v9.x). Specifically, spatie/laravel-backup v8.x-dev is compatible only with Laravel 10.x or 11.x.

Possible Solutions:

  • Option 1: Update the Laravel version in composer.json to Laravel 10 or 11 to resolve the version conflict.
  • Option 2: Downgrade the spatie/laravel-backup package to a version that is compatible with Laravel 9.

Environment:

  • Laravel Framework: v9.52.x
  • spatie/laravel-backup: v8.x-dev

Additional Context:

This issue prevents me from proceeding with the local setup and making the necessary code changes.

Details about your system

MacOS

How to reproduce

only clone

Possible Solution

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions