(Generic) Package registry: "select" seems not to work
I tried using the generic package registry for storing tagged builds. (Which works super flawless and amazing.)
I found a little discrepancy between the documentation and the "is".
select: The response payload. By default, the response is empty. Valid values are: package_file. package_file returns details of the package file record created by this request.
And a little more down in the documentation there are two examples (simplified in this issue here):
Example response without attribute
select:{"message":"201 Created"}
Example response with attributeselect = package_file:{ "id": 1, "package_id": 1, ... }
But when I try this (following the status example), it seems not to work:
$ curl --header "PRIVATE-TOKEN: ${TOKEN}" --upload-file file.txt "https://gitlab.example.com/api/v4/projects/277/packages/generic/my_package/0.0.1-alpha1/test?select=package_file"
I just get the standard response:
{"message":"201 Created"}
Using self-hosted GitLab 14.4.0
So:
- There might be a bug with
selectattribute - If there is no bug, an improvement to the documentation how to use the
selectattribute would be helpful
Thank you!