Skip to content

getComposer is broken in 2.x-dev #76

@stof

Description

@stof

#72 is using the /p2/<package>~dev.json file for the getComposer method and adds a getComposerLite method for /p2/<package>.json. But this is not equivalent to the behavior of the 1.x version, due to a misunderstanding of the way those files look like.
The ~dev.json file contains only versions for branches while the .json file contains the tags (this is done to improve caching, as the tag file is invalidated only when a release is done while the branch file is invalidated on each push, and composer does not need to dev versions by default).

To reproduce the 1.x behavior, the SDK would need to load both files and then merge the version lists for each package name.
And lite is a bad description. getComposerReleases would be a better name.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions