You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When checking out specific commit from a repository, requirements are erroneously resolved from composer.json in the topmost commit of the branch
#3705
The commit is present in the branch dev-master, composer.json is present with no requirements, however on composer install an error is issued suggesting that the package resolves requirements from topmost commit of dev-master branch:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- nette/nette dev-master requires nette/application >=2.3.0 -> no matching package found.
- nette/nette dev-master requires nette/application >=2.3.0 -> no matching package found.
- Installation request for nette/nette dev-master#b8ca5b82d407453b8cf26ce08a36ee698452d000 -> satisfiable by nette/nette[dev-master].
Composer version is 07c644ac229a21df80180598d8bb9aaba232eecb
The text was updated successfully, but these errors were encountered:
That's because composer does not know about the composer.json file in that specific hash. Packagist only stores the latest composer.json for dev-master. Composer cannot determine what is in the composer.json of that specific commit. It would require a git clone to be able to determine that. For sane reasons this is not supported, see #599. Your only option is creating a lock file with this commit .
I am trying to require older version of library, which has no tag. Repositories are defined as follows:
The commit is present in the branch
dev-master
, composer.json is present with no requirements, however oncomposer install
an error is issued suggesting that the package resolves requirements from topmost commit ofdev-master
branch:Composer version is
07c644ac229a21df80180598d8bb9aaba232eecb
The text was updated successfully, but these errors were encountered: