magento / magento2-upward-connector

Magento module for routing front-end requests to UPWARD-PHP
Open Software License 3.0
23 stars 25 forks source link

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

Open vy-shmal opened 2 years ago

vy-shmal commented 2 years ago

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.

Watch3ruk commented 2 years ago

did you sort this out ??

vy-shmal commented 2 years ago

@Watch3ruk nope haven't found time yet.

tjwiebell commented 2 years ago

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.

Watch3ruk commented 2 years ago

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

tjwiebell commented 2 years ago

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

{
  "repositories": {
    "upward": {
        "type": "github",
        "url": "git@github.com:<your-org-or-username>/upward-php.git"
    }
  },
  "require": {
    "magento/upward": "dev-<branch-with-patch> as 1.1.6"
  }
}
Watch3ruk commented 2 years ago

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

{
  "repositories": {
    "upward": {
        "type": "github",
        "url": "git@github.com:<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": "git@github.com:Watch3ruk/upward-php.git"
}

],
mohdaali27 commented 2 years ago

After apply the patch i am getting the below error image

How can i fix this issue ?

Watch3ruk commented 2 years ago

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": "git@github.com:Watch3ruk/upward-php.git"
}

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

}

mohdaali27 commented 2 years ago

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 ?