fix: allow custom package name when uploading generic_package assets#607
Conversation
|
It actually does not correct if the configuration provide a regex path (may match multiple files to upload). |
JonasSchubert
left a comment
There was a problem hiding this comment.
IMO the option to configure the package name is a good idea.
But I would only provide this configuration option and would not change other functionalities.
Unit tests should be added, too.
I would update the implementation and add unit tests later when the implementation has been approved. |
@phuocnb Feel free to go on and ping me if you're stuck somewhere! |
I were so busy in the last 2 months. |
|
@fgreinacher @JonasSchubert The upload request actually return a This is the full job log After running the above job, the result is:
Changing the In the line 98-103 line 115-118 I believe that This is the original issue that i want to commit a fix on this PR. Anyway, i still working on this issue (on another branch). |
|
Any updates on this ? I really need this feature for my workflow too |
…neric-package-name
same filenames may exist in different directories
|
Thanks for getting back to this @phuocnb! The implementation looks fine at a first sight. Would you please update the PR description to match the implementation? Just to not confuse users that end up here from the changelog 😀 Thansk! |
|
@phuocnb Could you also revert your changes in the |
There was a problem hiding this comment.
@phuocnb Thanks a lot! Please fix the lint issue and we're good to go here!
|
🎉 This PR is included in version 13.2.8 🎉 The release is available on: Your semantic-release bot 📦🚀 |
The current
generic_packageupload does not allow to set a custom package name. It's alwaysrelease.According to gitlab url format:
/projects/:id/packages/generic/:package_name/:package_version/:file_name?status=:statusWhat i did:
I add
packageNameas a new option ofassetthat allows to set a custom package name instead ofrelease. It will usereleaseas package name if the option is not defined.