release-assets-as-generic-package example requires login to download packages
Summary
The example given in https://gitlab.com/gitlab-org/release-cli/-/tree/master/docs/examples/release-assets-as-generic-package/ creates asset links of the form:
But these require a login and a gitlab.com account.
If I instead go copy paste the link from the Package Repository, I get a link like this
https://gitlab.com/plom/plom/-/package_files/6586052/download
And no login is required.
Steps to reproduce
- start another browser that is not logged into gitlab.com
- click first link: https://gitlab.com/api/v4/projects/18313733/packages/generic/PlomClient-windows/0.5.16/PlomClient-0.5.16.exe
- note login requested.
- now try: https://gitlab.com/plom/plom/-/package_files/6586052/download
- same file, but no login needed.
Example Project
What is the current bug behavior?
People need to login to download my FOSS software, despite following the example above.
What is the expected correct behavior?
Either the this particular API call should not require a login (that would be a bug to be filed elsewhere). That would be best b/c the first link looks better.
But in the meantime, the "Release-assests-as-generic-package" example should be changed to use the 2nd link.
Relevant logs and/or screenshots
none
Output of checks
This bug happens on GitLab.com
Possible fixes
I will try to remember to post once I workaround it in my own .gitlab-ci file. At the moment I'm not entirely sure how to get the 2nd link programmatically.