M
M
MikUrrey2021-07-26 16:28:35
PHP
MikUrrey, 2021-07-26 16:28:35

What to do with such a package?

I have a fun dadata/apiclient package in my old project. It is not clear what happened to him - either the developer deleted the old versions, or something else has changed in the repositories, but what worked 5 years ago now behaves like this:

composer install

- Installing dadata/apiclient (v1.0.0): Downloading (failed)    Failed to download dadata/apiclient from dist: The "https://bitbucket.org/henui/dadata-apiclient/get/47bad3cb8af8773bc44ae0b548bf2bd7aa1ce411.zip" file could not be downloaded (HTTP/1.1 404 Not Found)
    Now trying to download from source
  - Installing dadata/apiclient (v1.0.0): 
                                                                  
  [RuntimeException]                                              
  Failed to clone https://bitbucket.org/henui/dadata-apiclient,   
                                                                  
  The given URL (https:***@)example.com/path-to-repository)


composer update

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - The requested package dadata/dadata-api-bundle ^1.0 exists as dadata/dadata-api-bundle[2.0.0, dev-master] but these are rejected by your constraint.
  Problem 2
    - The requested package dadata/apiclient ^1.0 is satisfiable by dadata/apiclient[1.0.x-dev] but these conflict with your requirements or minimum-stability.


How to get the required versions now? The project is not mine, I'm afraid it will break with the installation of 2.x versions.

UPD: I did not find another way out except to install versions 2.x and manually test the performance.
I'm wondering if the developers of these wonderful packages will ever read this: if there is no backward compatibility with v2, then why remove v1, and if it is, then why v2, and not v1.1?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Egor Danchenko, 2021-07-26
@YahorDanchanka

I think you should try using dev-master / 1.0.x-dev
This is probably the version you want.

N
nokimaro, 2021-07-27
@nokimaro

If there is a copy of the project with the /vendor/ folder, then you can pull the sources from there and publish them in your git repository and specify a link to the custom repository in composer.json.

"repositories": [
        {
            "type": "vcs",
            "url":  "[email protected]:XXXUSERNAMEXXXX/YYYYY-REPO.git"
        },

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question