glab release create / glab release upload of other assets fail with 400 {error: link_type does not have a valid value}
glab version
glab version 1.24.1 (2022-12-07)
Debian testing.
Summary
glab can't upload Other asset files when doing a release.
Steps to reproduce
Try to create a release, or upload a file for that tag release:
$ glab release create 10.0.3 /path/to/other_assets.tar.xz
or just upload the file:
$ glab release upload 10.0.3 /path/to/other_asset.tar.xz
Been also trying to pass --assets-links '[]'
, but got the same thing:
glab release create 10.0.3 build-release/meson-dist/weston-10.0.3.tar.xz build-release/meson-dist/weston-10.0.3.tar.xz.sha256sum build-release/meson-dist/weston-10.0.3.tar.xz.sig --notes '' --assets-links '[]'
• Validating tag 10.0.3
• creating or updating release repo=wayland/weston tag=10.0.3
✓ release updated url=https://gitlab.freedesktop.org/wayland/weston/-/releases/10.0.3
• Uploading release assets
• Uploading to release file=build-release/meson-dist/weston-10.0.3.tar.xz name=weston-10.0.3.tar.xz
x release failed after 4.55s error=POST https://gitlab.freedesktop.org/api/v4/projects/wayland/weston/releases/10.0.3/assets/links: 400 {error: link_type does not have a valid value}
What is the current bug behavior?
Can't really do a release.
What is the expected correct behavior?
Asset files should be uploaded.