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
Add "abandoned" to composer.json schema. #4610
Comments
|
Makes sense I think, it's just a validation change anyway, it's nothing you can't do yet. The only thing is packagist will ignore the abandoned flag and it'll still require you to do that in the UI but I think that's for the best. |
|
I'm interested in the scope of the abandoned key (I can't find any docs for it) :) Would committing The intent here being to try and push users off say cc: @thiagooak since he authored the commit. |
|
The notion of "abandoning" a package on packagist is package-wide, so no please don't do this on a per-version basis as the wording will be all wrong and you might confuse users. IMO people should check |
Yeah, this was really the motivation for asking – wouldn't want to accidently have this effect.
IMO it would be nice to have composer support abandonment via a version constraint too (and perhaps have adjusted wording) :) The abandon feature exists so package authors can be responsible and give users a heads up when development ceases, I think we should be able to do the same thing for versions that have the same fate. I don't think that
Hope that makes sense :) I'll put this in a new issue (#7223) since this has turned into more of a feature request now. |
I do like the fact that data structures seem to be the same in both composer.json and Packagist.
The feature to mark packages abandoned currently is a meta feature implemented in the Packagist UI. As soon as a package is marked, all published versions and branched inherit this flag.
To allow doing the same for my local Satis instance and private repos, I discovered that Satis will happily consume the "abandoned" flag from the composer.json file and integrate it into it's own package metadata. I know it's limited to the branch this has been committed and that you usually cannot change tags, but I like the idea that the source repository is able to communicate the package status directly instead of indirectly. My own afterburner script reads the created Satis metadata and propagates the "abandoned" flag to all tags.
Now the issue is: The schema for composer.json does not allow adding
"abandoned":trueor"abandoned":"other/package", and I think it should be added.It would open a way for source repos to communicate the status of a package without the need for another channel. However, it's unclear on the consuming side how to deal with this info beyond "pass it through unaltered", and I'd think this would be out of scope for this issue.
The text was updated successfully, but these errors were encountered: