-
Notifications
You must be signed in to change notification settings - Fork 519
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dev-master no longer works in main branch (it does in 2.x) #664
Comments
Cannot reproduce. |
@alcohol Hi, i think he referring to something like this: Example composer.json: {
"name": "my/project",
"type": "project",
"description": "Hello World",
"version": "1.0.0",
"repositories": {
"satis": {
"type": "composer",
"url": "Your satis installation url"
}
},
"require": {
"php": ">=7.3",
"ioncube/php-openssl-cryptor": "dev-master"
},
"minimum-stability": "dev",
"prefer-stable": true
} With your satis installation (main branch) indexing
Your requirements could not be resolved to an installable set of packages.
Problem 1
- The requested package ioncube/php-openssl-cryptor dev-master exists as ioncube/php-openssl-cryptor[dev-master] but these are rejected by your constraint. @Pin0 Am i getting it wrong? |
Jordi Boggiano has described the new behaviour of Composer 2 vs Composer 1 in the blog https://blog.packagist.com/deprecating-composer-1-support/ Essentially: Any package will only ever be available for Composer 1 once a request for it from a Composer 2 instance has been received. This is to reduce the amount of monolithic meta data that is required for Composer 1. It may be a side effect of what you are experiencing |
@SvenRtbg and @enfoqueNativo I think that is correct. We resolved it by not using dev-master and we should use composer 2 anyway |
The problem seems that Satis 3.x generates two files which contains the available packages, one for the tagged releases and one for the dev versions:
composer (2.x) does only load the |
Satis isn't tagged anymore, and the last tag was 1.0.0, so referring to "Satis 3.x" is not describing what version you are using.
The difference between the repo format of Composer 1 and 2 is exactly what you are describing, but I doubt Composer 2 is ignoring the dev file all the time.
|
The exact used Satis version is 3.0.x-dev (therefore, referred as 3.x). The problem was that the web server denied access to |
Describe the bug
when updating a dependency using "composer update vendor/packagename" and in the composer json the require is like this:
the dependency is not updated
To Reproduce
Provide configuration file(s) and the exact command that you invoked.
php satis/bin/satis build satis.json public/
the public is hosted on https://packagist.vendor.tld
satis.json
Outcome
no errors, works as it always did.
Expected behavior
The latest version of vendor/packagename is retrieved when using "composer update vendor/packagename"
Additional context
This bug happens on the main branch, if we use branch 2.x it works perfect :)
We think it has something todo with the composer 2 dependencies that are updated but other then that we are in the dark...
The text was updated successfully, but these errors were encountered: