Packages/composer: semver not fully supported
Summary
Semver is not fully supported with the composer registry: metadata are not supported.
Steps to reproduce
-
Create a tag: v1.0.1+some-metadata
-
Add it to the registry via curl;
+
must be encoded, so I use json instead (curl -d '{"tag":"v1.0.1+metadata"}' -H 'Content-Type: application/json'
) -
The package is reference as "1.0.1" instead of "1.0.1+some-metadata"
Pre-release works well (for example: 2.0.0-alpha.5)
Example Project
https://gitlab.com/Gounlaf/issue-composer-registry
What is the current bug behavior?
The metadata is stripped from the tag.
What is the expected correct behavior?
Metadata should be included in the
Relevant logs and/or screenshots
The API returns {"message":"201 Created"}
in all cases
Output of checks
This bug happens on GitLab.com
Possible fixes
NOOP
I've search for bugs with label=~"Category:Package Registry"
+ label~"bug"
+ composer
.
I found no related issues.
Regards.