preserve-paths
preserve-paths copied to clipboard
A composer plugin for keeping specified files and directories when installing/updating new composer packages. Can be used to supported nested packages.
A recent change in composer - https://github.com/composer/composer/pull/11455 - now breaks `preserve-paths` when it deals with metapackages. ``` Error: Composer\Util\Filesystem::isAbsolutePath(): Argument #1 ($path) must be of type string, null given, called...
I'm using latest version of preserve-path i.e 0.1.6. I have following code for my D7 project: ``` "installer-paths": { "dist/": [ "type:drupal-core" ], "dist/sites/all/libraries/{$name}": [ "type:drupal-library"], "dist/sites/all/modules/custom/{$name}": [ "type:drupal-custom-module" ],...
Function absolutePaths() updated to not crash when null is supplied to $this->filesystem->isAbsolutePath()
A sticking plaster for the error in #43
It's easy to misconfigure preserve paths. If you preserve a path that, perhaps, receives a single file like a .gitkeep (for Drupal 7 for example the sites/all/themes folder would receive...
When adding or deleting patches, paths are not preserved. This is the test composer.json I am using. ``` { "name": "example", "description": "Example config for a D7 site using composer...
When I am installing Drupal 7 alongside a number of modules from a freshly cloned repo it appears that the modules folder seems to get backed up in a partially...
Environment dev: * Device: macOS Big Sur * OS version: v11.4 * Docker: version 20.10.11, build dea9396 * Composer: version 2.2.1 * drupal-composer/preserve-paths: 0.1.6 prd: * alpine:3.14 * php8.0.13 *...
Package throws a runtime exception with `--no-cache` option set when running `composer install` or similar: ``` $ composer --no-dev --no-cache -o install Gathering patches for root package. Loading composer repositories...
I am attempting to use this package to install WordPress along with plugins and themes using only Composer. The problem is, if I preserve `wp-content` as a whole, the files...