magento2-upward-connector icon indicating copy to clipboard operation
magento2-upward-connector copied to clipboard

Trying to install it from composer and getting error Conclusion: remove laminas/laminas-http 2.15.0

Open vy-shmal opened this issue 4 years ago • 9 comments

Magento 2.4.2

Trying to make venia work and cant install the module-upward-connector

After running composer require magento/module-upward-connector getting this error.

Screenshot from 2021-09-16 19-39-35

If I run composer require magento/module-upward-connector 1.2.0

Screenshot from 2021-09-16 19-39-48

How can I overcome this issue.

vy-shmal avatar Sep 16 '21 16:09 vy-shmal

did you sort this out ??

Watch3ruk avatar Sep 28 '21 08:09 Watch3ruk

@Watch3ruk nope haven't found time yet.

vy-shmal avatar Sep 28 '21 10:09 vy-shmal

This has been patched in the magento-commerce/develop line, and it appears the sync job has not pulled that down yet. While I investigate getting branch syncing back up, if you need an immediate fix you can fork and apply this patch. I believe we're targeting an October release, but I'll see if we can publish these fixes ahead of PWA Studio.

tjwiebell avatar Sep 28 '21 13:09 tjwiebell

i can make the changes but how to make magento use my fork ? all the "google" solutions didn't help .

Watch3ruk avatar Sep 28 '21 20:09 Watch3ruk

Merge this snippet into your composer.json and it should prefer your branch over the packagist version.

{
  "repositories": {
    "upward": {
        "type": "github",
        "url": "[email protected]:<your-org-or-username>/upward-php.git"
    }
  },
  "require": {
    "magento/upward": "dev-<branch-with-patch> as 1.1.6"
  }
}

tjwiebell avatar Sep 28 '21 20:09 tjwiebell

Merge this snippet into your composer.json and it should prefer your branch over the packagist version.

{
  "repositories": {
    "upward": {
        "type": "github",
        "url": "[email protected]:<your-org-or-username>/upward-php.git"
    }
  },
  "require": {
    "magento/upward": "dev-<branch-with-patch> as 1.1.6"
  }
}

Thanks , that worked . for others ( new to this like me ) edit composer by adding
"require": { "magento/composer-dependency-version-audit-plugin": "~0.1", "magento/composer-root-update-plugin": "~1.1", "magento/module-upward-connector": "^1.2", "magento/product-community-edition": "2.4.3", ++ "magento/upward": "dev-laminas as 1.1.5" }, "autoload": { (


"repositories": [ { "type": "composer", "url": "https://repo.magento.com/" },{

    "type": "github",
    "url": "[email protected]:Watch3ruk/upward-php.git"
}

],

Watch3ruk avatar Sep 29 '21 08:09 Watch3ruk

After apply the patch i am getting the below error image

How can i fix this issue ?

mohdaali27 avatar Sep 30 '21 14:09 mohdaali27

should not , as this fixes the issue . make a backup of your composer, and use this one .

{ "name": "magento/project-community-edition", "description": "eCommerce Platform for Growth (Community Edition)", "type": "project", "license": [ "OSL-3.0", "AFL-3.0" ], "config": { "preferred-install": "dist", "sort-packages": true }, "version": "2.4.3", "require": { "magento/composer-dependency-version-audit-plugin": "~0.1", "magento/composer-root-update-plugin": "~1.1", "magento/module-upward-connector": "^1.2", "magento/product-community-edition": "2.4.3", "magento/upward": "dev-laminas as 1.1.5" }, "autoload": { "exclude-from-classmap": [ "/dev/", "/update/", "/Test/" ], "files": [ "app/etc/NonComposerComponentRegistration.php" ], "psr-0": { "": [ "app/code/", "generated/code/" ] }, "psr-4": { "Magento\": "app/code/Magento/", "Magento\Framework\": "lib/internal/Magento/Framework/", "Magento\Setup\": "setup/src/Magento/Setup/" } }, "require-dev": { "allure-framework/allure-phpunit": "~1.4", "dealerdirect/phpcodesniffer-composer-installer": "^0.7.0", "friendsofphp/php-cs-fixer": "~2.18.1", "lusitanian/oauth": "~0.8.10", "magento/magento-coding-standard": "", "magento/magento2-functional-testing-framework": "^3.0", "pdepend/pdepend": "~2.7.1", "phpcompatibility/php-compatibility": "^9.3", "phpmd/phpmd": "^2.8.0", "phpstan/phpstan": "^0.12.77", "phpunit/phpunit": "^9", "sebastian/phpcpd": "^6.0.3", "squizlabs/php_codesniffer": "~3.5.4", "symfony/finder": "^5.2" }, "conflict": { "gene/bluefoot": "" }, "autoload-dev": { "psr-4": { "Magento\PhpStan\": "dev/tests/static/framework/Magento/PhpStan/", "Magento\Sniffs\": "dev/tests/static/framework/Magento/Sniffs/", "Magento\TestFramework\Inspection\": "dev/tests/static/framework/Magento/TestFramework/Inspection/", "Magento\TestFramework\Utility\": "dev/tests/static/framework/Magento/TestFramework/Utility/", "Magento\Tools\": "dev/tools/Magento/Tools/", "Magento\Tools\Sanity\": "dev/build/publication/sanity/Magento/Tools/Sanity/" } }, "minimum-stability": "stable", "prefer-stable": true, "repositories": [ { "type": "composer", "url": "https://repo.magento.com/" },{

    "type": "github",
    "url": "[email protected]:Watch3ruk/upward-php.git"
}

],
"extra": {
    "magento-force": "override"
}

}

Watch3ruk avatar Sep 30 '21 16:09 Watch3ruk

I am using the Enterprise Edition 2.4.3 and getting some issue while replacing composer.json file. Can you confirm if same json should work for Enterprise Edition ?

mohdaali27 avatar Oct 01 '21 05:10 mohdaali27