wordpress-plugin files got deleted by rm -rf
szepeviktor opened this issue · comments
Viktor Szépe commented
With a simple JSON file
{
"require": {
"wpackagist-plugin/wp-redis": "^1.0"
},
"repositories": [
{
"type": "composer",
"url": "https://wpackagist.org"
}
]
}
and with Composer v2.
Reading ./composer.json
Loading config file /home/viktor/.composer/config.json
Loading config file /home/viktor/.composer/auth.json
Loading config file ./composer.json
Checked CA file /etc/ssl/certs/ca-certificates.crt: valid
Executing command (/home/viktor/src/aaa): git branch -a --no-color --no-abbrev -v
Executing command (/home/viktor/src/aaa): git describe --exact-match --tags
Executing command (CWD): git --version
Executing command (/home/viktor/src/aaa): git log --pretty="%H" -n1 HEAD --no-show-signature
Executing command (/home/viktor/src/aaa): hg branch
Executing command (/home/viktor/src/aaa): fossil branch list
Executing command (/home/viktor/src/aaa): fossil tag list
Executing command (/home/viktor/src/aaa): svn info --xml
Reading /home/viktor/.composer/composer.json
Loading config file /home/viktor/.composer/config.json
Loading config file /home/viktor/.composer/auth.json
Loading config file /home/viktor/.composer/composer.json
Loading config file /home/viktor/.composer/auth.json
Reading /home/viktor/.composer/auth.json
Running 2.0.5 (2020-11-06 20:57:15) with PHP 7.4.12 on Linux / 4.9.0-13-amd64
Loading composer repositories with package information
Updating dependencies
Downloading https://wpackagist.org/packages.json
[200] https://wpackagist.org/packages.json
Writing /home/viktor/.composer/cache/repo/https---wpackagist.org/packages.json into cache
Reading /home/viktor/.composer/cache/repo/https---wpackagist.org/p-providers-2019.json from cache
...
Downloading https://repo.packagist.org/packages.json
[200] https://repo.packagist.org/packages.json
Writing /home/viktor/.composer/cache/repo/https---repo.packagist.org/packages.json into cache
Reading /home/viktor/.composer/cache/repo/https---repo.packagist.org/provider-composer~installers.json from cache
Downloading https://repo.packagist.org/p2/composer/installers.json if modified
[304] https://repo.packagist.org/p2/composer/installers.json
Generating rules
Resolving dependencies through SAT
Looking at all rules.
Something's changed, looking at all rules again (pass #1)
Dependency resolution completed in 0.002 seconds
Analyzed 127 packages to resolve dependencies
Analyzed 109 rules to resolve dependencies
Lock file operations: 2 installs, 0 updates, 0 removals
Installs: composer/installers:v1.9.0, wpackagist-plugin/wp-redis:1.1.1
- Locking composer/installers (v1.9.0)
- Locking wpackagist-plugin/wp-redis (1.1.1)
Writing lock file
Installing dependencies from lock file (including require-dev)
Reading ./composer.lock
Package operations: 2 installs, 0 updates, 0 removals
Installs: composer/installers:v1.9.0, wpackagist-plugin/wp-redis:1.1.1
Reading /home/viktor/.composer/cache/files/composer/installers/1a4220217b7b2e7ae04a74dc431f91409932ffed.zip from cache
- Loading composer/installers (v1.9.0) from cache
Reading /home/viktor/.composer/cache/files/wpackagist-plugin/wp-redis/02952b35e81786312a7f3b7ba7697300998715f5.zip from cache
- Loading wpackagist-plugin/wp-redis (1.1.1) from cache
- Installing composer/installers (v1.9.0): Extracting archive
Executing async command (CWD): unzip -qq '/home/viktor/src/aaa/vendor/composer/tmp-f95a6380c9acf85b4deb568680c49c31' -d '/home/viktor/src/aaa/vendor/composer/21db090e'
Executing command (CWD): rm -rf '/home/viktor/src/aaa/vendor/composer/installers'
Executing command (CWD): rm -rf '/home/viktor/src/aaa/vendor/composer/21db090e'
Loading plugin Composer\Installers\Plugin
- Installing wpackagist-plugin/wp-redis (1.1.1): Extracting archive
Executing async command (CWD): unzip -qq '/home/viktor/src/aaa/vendor/composer/tmp-a4d029619b8b8ead9c34e75fe4bc8259.zip' -d '/home/viktor/src/aaa/vendor/composer/ceef75ef'
Executing command (CWD): rm -rf 'wp-content/plugins/wp-redis'
Executing command (CWD): rm -rf '/home/viktor/src/aaa/vendor/composer/ceef75ef'
Executing command (CWD): rm -rf '/home/viktor/src/aaa/wp-content/plugins/wp-redis'
Executing command (CWD): rm -rf '/home/viktor/src/aaa/vendor/wpackagist-plugin/wp-redis'
Downloading https://packagist.org/downloads/
[201] https://packagist.org/downloads/
Generating autoload files
1 package you are using is looking for funding.
Use the `composer fund` command to find out more!
wp-content/plugins
is empty at the end.
Please advise.
Viktor Szépe commented
Resolved by https://github.com/composer/composer/releases/tag/2.0.6
Fixed regression in 2.0.5 dealing with custom installers which do not pass absolute paths