Vineet Sajwan
Vineet Sajwan

Reputation: 196

Why pulling package from packagist is failing?

I have forked a repository to make some changes in it. Here is my repo

https://github.com/vinsaj9/scrypt

and it has tags too. It is linked with packagist

https://packagist.org/packages/vinsaj9/scrypt

Now, I am getting following error

"The requested package vinsaj9/scrypt could not be found in any version, there may be a typo in the package name"

when I am trying to pull it through this composer setting

{
    "name": "test/test",
    "description": "test",
    "type": "project",
    "version": "0.0.1",
    "license": "OSL-3.0",
    "require": {
        "vinsaj9/scrypt": "*"
    },
    "minimum-stability": "dev",
    "prefer-stable": true
}

Upvotes: 1

Views: 213

Answers (2)

Konrad Gałęzowski
Konrad Gałęzowski

Reputation: 1993

The same can happen when you're using legacy composer v1.

The package must be installed by composer v2 to be visible to composer v1, but you need to wait until next day for it to be visible.

Also to make it stay visible for composer v1 you need to install it on composer v2 at east once per 4 months.

More information here: https://blog.packagist.com/deprecating-composer-1-support/

Upvotes: 0

Vineet Sajwan
Vineet Sajwan

Reputation: 196

As Hakre mentioned in his comment to my question. After uploading package to https://packagist.org/ you need to wait for some hours. In my case it was not updated even after 4 hours and reason could be that I was keep making changes in the repo, creating new releases and tags in the process of debugging my problem.

Upvotes: 1

Related Questions