Failed to decode response / parse time in 0.9.0
Summary
Failed to decode response when creating tag via v0.9.0 / latest image.
Works fine on v0.8.0
Steps to reproduce
GitLab: 14.1.0
image: registry.gitlab.com/gitlab-org/release-cli:v0.9.0
script:
- |
release-cli create --name "Release v${PACKAGE_VERSION}" \
--tag-name "v${PACKAGE_VERSION}" \
--ref $CI_COMMIT_SHA \
--milestone "${PACKAGE_VERSION}" \
--assets-link "{\"name\":\"${PACKAGE_NAME}\",\"url\":\"${PACKAGE_REGISTRY_URL}\"}" \
--assets-link "{\"name\":\"${TAR_PACKAGE_NAME}\",\"url\":\"${TAR_PACKAGE_REGISTRY_URL}\"}"
Example Project
What is the current bug behavior?
time="2021-08-26T12:25:24Z" level=info msg="Creating Release..." cli=release-cli command=create name="Release v3.6.0" project-id=1 ref=7558eae155b08f8e7f8482b71d1698eb274ac279 server-url="https://gitlab.company.com" tag-name=v3.6.0 version=0.9.0
time="2021-08-26T12:25:24Z" level=fatal msg="run app" cli=release-cli error="failed to create release: failed to decode response: parsing time \"\"2021-08-23\"\" as \"\"2006-01-02T15:04:05Z07:00\"\": cannot parse \"\"\" as \"T\"" version=0.9.0
What is the expected correct behavior?
No errors, tag creates successfully:
time="2021-08-26T12:57:00Z" level=info msg="Creating Release..." cli=release-cli command=create name="Release v3.6.0" project-id=1 ref=767493d1cf848aef484aafc249fc69453759fb9d server-url="https://gitlab.company.com" tag-name=v3.6.0 version=0.8.0
Tag: v3.6.0
Name: Release v3.6.0
Description:
Created At: 2021-08-26 12:57:00.282 +0000 UTC
Released At: 2021-08-26 12:57:00.282 +0000 UTC
Asset::Link::Name: foo-3.6.0.tar.gz
Asset::Link::URL: https://gitlab.company.com/api/v4/projects/1/packages/generic/foo/3.6.0/foo-3.6.0.tar.gz
Asset::Link::Name: foo-3.6.0.zip
Asset::Link::URL: https://gitlab.company.com/api/v4/projects/1/packages/generic/foo/3.6.0/foo-3.6.0.zip
Milestone: 3.6.0 -
See all available releases here: https://gitlab.company.com/foo/-/releases
time="2021-08-26T12:57:00Z" level=info msg="release created successfully!" cli=release-cli command=create name="Release v3.6.0" project-id=1 ref=767493d1cf848aef484aafc249fc69453759fb9d server-url="https://gitlab.company.com" tag-name=v3.6.0 version=0.8.0
Relevant logs and/or screenshots
Output of checks
Possible fixes
Edited by Jaime Martinez