Skip to content

Composer not updating recipes if not a git folder  #972

Closed as not planned
Closed as not planned
@ecwio

Description

@ecwio

My project structure is like this:

root folder
.git
docker-compose
app
composer.json

so my git is not located in the app folder but in its parent

My docker app is rooted with the app folder

When I try to update my recipes with docker exec app composer recipes:update it fails with error below

How to fix this; I don't want to have to create a new git inside app; that would be redundant.

Updating recipe for doctrine/annotations...

There was an error applying the recipe update patch
Command "git rev-parse --show-prefix" failed: "fatal: not a git repository (or any parent up to mount point /var/www)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
". Output: "".

Update the recipe by re-installing the latest version with:
  composer recipes:install doctrine/annotations --force -v

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