Skip to content

Same named directories in file path cause issue on re-install #76

Open
@CNanninga

Description

@CNanninga

I have the following situation: I've already run my install the first time, meaning all files from Magento modules have been copied into the codebase (copy, not symlink) and the composer.lock file is already present. On a new clone of this codebase where the vendor directory doesn't exist, I run "composer install" to pull down the components into vendor. This results in the modman-based copy operation being performed again, but a problem happens only in the specific case where the same directory name occurs twice in a row in one of the file paths. Example:

One of my dependency repos has the following line in modman:
app/code/community/CLS/Widgets app/code/community/CLS/Widgets

One of the files there is this one, which has already been copied into the codebase on the first install:
htdocs/app/code/community/CLS/Widgets/Model/Widget/Widget/Instance.php

Notice "Widget/Widget" in the file path. This copy operation worked fine on the first install, but when running "composer install" again with the files already in place, I end up with the following file in my codebase:
htdocs/app/code/community/CLS/Widgets/Model/Widget/Instance.php

i.e., the extra "Widget" in the file path was somehow removed in the copy destination, and the file was copied into the wrong place.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions