-
Notifications
You must be signed in to change notification settings - Fork 873
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix(cli): avoid incorrect addon name when using dot as local addon path #4126
Conversation
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
Codecov Report
@@ Coverage Diff @@
## master #4126 +/- ##
==========================================
+ Coverage 58.69% 60.19% +1.50%
==========================================
Files 330 330
Lines 31789 31789
==========================================
+ Hits 18657 19136 +479
+ Misses 10619 10149 -470
+ Partials 2513 2504 -9
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great job!
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com> Co-authored-by: Zheng Xi Zhou <zzxwill@gmail.com>
It is better to squash the 8 commits |
Approver can merge with squash |
Signed-off-by: Charlie Chiang charlie_c_0129@outlook.com
Description of your changes
When we use
.
to enable local addons, cli will use.
as the addon name to print endpoints, which will cause errors.Example:
vela addon enable .
orvela addon enable ./some/path/.
Notice the last three (or five) lines. (
.
is used as addon name, andaddon-.
invalid labels)This has been fixed by correctly finding out directory name. (Also fixed some typos.)
I have:
make reviewable
to ensure this PR is ready for review.backport release-x.y
labels to auto-backport this PR if necessary.How has this code been tested
e2e tests have been added
Special notes for your reviewer