-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
delete_vendor_packages deletes needed composer files #69
Comments
I suspect what's happening is that You could try setting the
I think maybe that line won't be necessary after
I've been meaning to add this to Strauss itself. |
Thanks for the astonishing fast reply Brian! I searched for the requirement that had
"classmap": [
"vendor"
]
require_once __DIR__ . '/vendor/autoload.php'; The issue mentioned here is resolved. Still running into another issue where a specific directory (/lazy) of |
First of all; thank you for this package. It works wonderfull.
Although I'm running into an issue when using
delete_vendor_packages
in the config. The reason I want to use this is to cleanup my vendor directory so only specific dependencies stay there and only those will be autoloaded using composer. That is because I use the composer autoloader for some packages that are not using namespaces and I also use the composer autoloader to load my custom plugin classes.That means I include both of the autoloaders in my plugin like so:
This is my config in the composer.json:
As you can see I am running a custom shell script after the regular composer commands like
install
andupdate
. The shell script is looking like this:So after running
vendor/bin/strauss
myvendor
directory is looking like this. (leaving some stuff out for simplicity):All good until now. But the next step is to dump the composer autoload by
composer dump-autoload
and this is where I run into the following errors:This is originating from
vendor/bin/composer
on line 120. That is the following:include __DIR__ . '/..'.'/composer/composer/bin/composer';
This file isnt present anymore after using
delete_vendor_packages
and it also is not in the newvendor/prefixed/composer
directory. I've tried excluding thecomposer/composer
package by adding it to theexclude_from_copy
config but that resulted in even more errors.I believe this error could be resolved when the composer directory would not be copied to the
target_directory
. This directory should also not be cleaned so the file that is being searched for will still be present.I've got the following questions:
target_directory
at all?The text was updated successfully, but these errors were encountered: