Skip to content
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: trait not added in Go SDK #5950

Merged
merged 1 commit into from
May 4, 2023
Merged

Conversation

chivalryq
Copy link
Member

@chivalryq chivalryq commented May 1, 2023

Description of your changes

Fix: traits is not added to component in Go SDK.

πŸ€– Generated by Copilot at e9b1b63

Summary

πŸ›πŸ› οΈπŸ§Ή

Fix a syntax error in genDedicatedFunc that prevented generating Go functions for dedicated traits. The error was caused by an extra closing parenthesis in pkg/definition/gen_sdk/go.go.

genDedicatedFunc
Extra parenthesis gone
Code compiles in spring

Walkthrough

  • Fix syntax error in genDedicatedFunc function by removing extra closing parenthesis (link)

Fixes #

I have:

  • Read and followed KubeVela's contribution process.
  • Related Docs updated properly. In a new feature or configuration option, an update to the documentation is necessary.
  • Run make reviewable to ensure this PR is ready for review.
  • Added backport release-x.y labels to auto-backport this PR if necessary.

How has this code been tested

Special notes for your reviewer

Signed-off-by: qiaozp <qiaozhongpei.qzp@alibaba-inc.com>
@chivalryq chivalryq added the backport release-1.8 add this label will automatically backport this PR to release-1.8 branch label May 1, 2023
@codecov
Copy link

codecov bot commented May 1, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +4.77 πŸŽ‰

Comparison is base (258a1ab) 55.83% compared to head (e9b1b63) 60.61%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5950      +/-   ##
==========================================
+ Coverage   55.83%   60.61%   +4.77%     
==========================================
  Files         184      224      +40     
  Lines       27800    31183    +3383     
==========================================
+ Hits        15522    18901    +3379     
+ Misses      10725    10505     -220     
- Partials     1553     1777     +224     
Flag Coverage Ξ”
core-unittests 55.86% <100.00%> (+0.03%) ⬆️
e2e-multicluster-test 24.68% <0.00%> (?)
e2etests 25.13% <ΓΈ> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Ξ”
pkg/definition/gen_sdk/go.go 82.60% <100.00%> (ΓΈ)

... and 122 files with indirect coverage changes

β˜” View full report in Codecov by Sentry.
πŸ“’ Do you have feedback about the report comment? Let us know in this issue.

@chivalryq
Copy link
Member Author

/retest e2e-multicluster-test

@chivalryq
Copy link
Member Author

/retest e2e-test

@chivalryq chivalryq merged commit 5cb942c into kubevela:master May 4, 2023
26 checks passed
@github-actions
Copy link

github-actions bot commented May 4, 2023

Successfully created backport PR for release-1.8:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport release-1.8 add this label will automatically backport this PR to release-1.8 branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants