Skip to content
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

Error on 'null' paths for metapackages #43

Open
lazysoundsystem opened this issue May 25, 2023 · 5 comments
Open

Error on 'null' paths for metapackages #43

lazysoundsystem opened this issue May 25, 2023 · 5 comments

Comments

@lazysoundsystem
Copy link

A recent change in composer - composer/composer#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 in .../vendor/drupal-composer/preserve-paths/src/PluginWrapper.php on line 190

See also laminas/laminas-component-installer#69

@driskell
Copy link

Reproduction case in #42 reproduces this every time.

lazysoundsystem added a commit to lazysoundsystem/preserve-paths that referenced this issue May 25, 2023
@lazysoundsystem
Copy link
Author

Confirming that, as suggested in #44, sticking with composer version 2.5.5 avoids this issue until this package is updated.

berliner added a commit to UN-OCHA/hpc-content-site that referenced this issue May 29, 2023
Pin composer version until preserve-paths package is updated, see drupal-composer/preserve-paths#43
@paul-m
Copy link

paul-m commented Jun 25, 2023

Workaround using lazysoundsystem's repo:

    "repositories": {
        "preserve-paths-fix": {
            "type": "vcs",
            "url": "https://github.com/lazysoundsystem/preserve-paths",
            "only": ["drupal-composer/preserve-paths"]
        },
        "drupal": {
            "type": "composer",
            "url": "https://packages.drupal.org/8"
        }
    },
    "require": {
        "drupal-composer/preserve-paths": "dev-master",
        [etc]
    }

@VladimirAus
Copy link
Contributor

Thank you for the commit 🧁

@sandykadam
Copy link

You can use this updated package https://github.com/sandykadam/preserve-paths/releases/tag/0.4 to fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants