netresearch / dhl-module-shipping-m2

This extension is in legacy status since 04/2020 and will run out of maintenance and support after a short transition period. You can find the official replacement extension here https://github.com/netresearch/dhl-shipping-m2. It includes the latest and greatest possible range of functions that DHL is currently offering.
30 stars 20 forks source link

Can't install with PHP 7.2.13 #52

Closed ramzdam closed 5 years ago

ramzdam commented 5 years ago

Bug description Can't install the version 0.10.0 via VCS eventhough my PHP version is 7.2.13

Steps to reproduce To reproduce the problem:

  1. Run command composer require dhl/module-shipping-m2:0.10.0
  2. An error is displayed and installation fails

Expected behavior Should install successfully since I have PHP version 7.2.13

Screenshots / logs [InvalidArgumentException] Could not find package dhl/module-shipping-m2 in any version matching your PHP version (7 .2.13)

require [--dev] [--prefer-source] [--prefer-dist] [--no-progress] [--no-suggest] [--no-update] [--no-scripts] [--update-no-dev] [--update-with-dependencies] [--update-with-all-dependencies] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--] []...

Environment

FAQ Has the Knowledge Base been checked for a solution?

mam08ixo commented 5 years ago

Version 0.10.0 is compatible with PHP 7.2.

Installation runs through with no issues. dhl-shipping-install

Check if your composer version is up-to-date or if there are any CentOS related issues with it.

ramzdam commented 5 years ago

Thanks for this I guess the README.md is somewhat a little misleading specially for a newby like me. I followed the instruction

composer require dhl/module-shipping-m2:0.10.0

for VCS but didn't know that I have to run the

composer config repositories.dhl-shipping-m2 vcs git@github.com:netresearch/dhl-module-shipping-m2.git

MarcusWolschon commented 5 years ago

Searching for "Could not find package" you get http://dhl.support.netresearch.de/support/solutions/articles/12000027852-what-does-the-message-could-not-find-package-mean- refering to http://support.netresearch.de/support/solutions/articles/12000008579

and both don't say anything about "composer config repositories.dhl-shipping-m2 vcs ..."

ngolatka commented 5 years ago

@MarcusWolschon Yep, I noticed. that's why I removed my earlier comment.

We'll amend the readme to make this clearer.