GithubHelp home page GithubHelp logo

namoscato / resolve-composer-conflict Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 1.0 430 KB

Utility to automatically resolve composer.lock git conflicts

License: MIT License

JavaScript 100.00%
composer conflict-resolution git git-conflicts conflict resolver

resolve-composer-conflict's Introduction

Actions Status npm version

Resolve Composer Conflict

Utility to automatically resolve composer.lock git conflicts.

Installation

npm i -g resolve-composer-conflict

Usage

resolve-composer-conflict <branch>
  1. Merges the specified branch into the current branch if a merge is not already in progress
  2. Prompts manual resolution of other conflicts if applicable
  3. Resolves the composer.lock conflict by applying the current branch's updated dependencies to the merge branch's locked versions
  4. Commits the merge with a description of the conflicting files

resolve-composer-conflict's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar namoscato avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

dlively1

resolve-composer-conflict's Issues

Handle indirect dependency conflicts

Handle something like this:

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
    - Conclusion: remove guzzlehttp/guzzle 6.2.3
    - Installation request for guzzlehttp/guzzle 6.2.3 -> satisfiable by guzzlehttp/guzzle[6.2.3].
    - Conclusion: don't install guzzlehttp/psr7 1.2.1
    - guzzlehttp/guzzle 6.2.3 requires guzzlehttp/psr7 ^1.4 -> satisfiable by guzzlehttp/psr7[1.4.2, 1.4.0, 1.4.1].
    - Can only install one of: guzzlehttp/psr7[1.4.0, 1.2.1].
    - Can only install one of: guzzlehttp/psr7[1.4.1, 1.2.1].
    - Can only install one of: guzzlehttp/psr7[1.4.2, 1.2.1].
    - Can only install one of: guzzlehttp/psr7[1.2.1, 1.4.2].
    - Installation request for guzzlehttp/psr7 (locked at 1.2.1) -> satisfiable by guzzlehttp/psr7[1.2.1].

Even though guzzlehttp/guzzle was the only thing updated, guzzlehttp/psr7 also has to updated.

Support complex merge conflicts

Enable the user to manually resolve non-composer.lock conflicts and then run utility again to finish out automatic resolution and merge

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.