Skip to content

Incorrect Composer Root detected when using Symlink #74

@jigarius

Description

@jigarius

Since I saw the label question, I thought it was allowed to ask questions here. If asking questions is not allowed on the repo, please feel free to close this ticket and refer to the question of StackOverflow if you have the time.

Context

  • Set up a custom Composer package, say, custom/foo at /opt/foo.
  • Set up an empty Drupal installation at /opt/drupal.
  • Set up a custom repository and install the custom project as a symlink (for development):
    "require": {
      "custom/foo": "*"
    }
    ...
    "repositories: "{
      "type": "path",
      "url": "/opt/foo",
      "options": {
        "symlink": true
      }
    }
    
  • Run (new DrupalFinderComposerRuntime())->getComposerRoot()

Expectation

The path to the Drupal project should be returned, i.e. /opt/drupal

Reality

The path to the Package's root is returned, i.e. /opt/foo

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions