Skip to content

refactor: remove config package from dubbogo-cli sample generator#3218

Merged
Alanxtl merged 6 commits intoapache:developfrom
CAICAIIs:feature/remove-config-from-dubbogo-cli-sample-generator
Feb 19, 2026
Merged

refactor: remove config package from dubbogo-cli sample generator#3218
Alanxtl merged 6 commits intoapache:developfrom
CAICAIIs:feature/remove-config-from-dubbogo-cli-sample-generator

Conversation

@CAICAIIs
Copy link
Contributor

  • Migrate sample generator from config-based to programmatic API
  • Update client template to use client.NewClient()
  • Update server template to use server.NewServer()
  • Remove conf/dubbogo.yaml configuration files
  • Disable config file generation (comment out init() in gen_c_conf.go and gen_s_conf.go)
  • Fix import order to match project standards
  • Fix newline handling for byte-for-byte template matching
  • Update README.md and README_CN.md documentation

Description

Fixes #3204

Checklist

  • I confirm the target branch is develop
  • Code has passed local testing
  • I have added tests that prove my fix is effective or that my feature works

@CAICAIIs CAICAIIs force-pushed the feature/remove-config-from-dubbogo-cli-sample-generator branch from 9c37410 to 7f9e32f Compare February 17, 2026 18:05
- Migrate sample generator from config-based to programmatic API
- Update client template to use client.NewClient()
- Update server template to use server.NewServer()
- Remove conf/dubbogo.yaml configuration files
- Disable config file generation (comment out init() in gen_c_conf.go and gen_s_conf.go)
- Fix import order to match project standards
- Handle license suffix in constants.go using strings.TrimSuffix
- Update README.md and README_CN.md documentation
@CAICAIIs CAICAIIs force-pushed the feature/remove-config-from-dubbogo-cli-sample-generator branch from 60be442 to b544939 Compare February 17, 2026 18:16
Fix test failures by adding blank lines between the license header
and the generated code content in all template files:

- api.go: Add blank line at beginning of apiFile constant
- api_tripe.go: Add blank line at beginning of apiTripleFile constant
- proto.go: Add blank line at beginning of protoFile constant
- gen_client.go: Add blank line at beginning of clientCode constant and
  add newline separator in concatenation
- gen_server.go: Add blank line at beginning of serverCode constant and
  add newline separator in concatenation

All tests now pass with these changes.
@sonarqubecloud
Copy link

@codecov-commenter
Copy link

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 47.95%. Comparing base (60d1c2a) to head (5b8fdd8).
⚠️ Report is 736 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #3218      +/-   ##
===========================================
+ Coverage    46.76%   47.95%   +1.18%     
===========================================
  Files          295      463     +168     
  Lines        17172    33743   +16571     
===========================================
+ Hits          8031    16182    +8151     
- Misses        8287    16253    +7966     
- Partials       854     1308     +454     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Alanxtl Alanxtl linked an issue Feb 19, 2026 that may be closed by this pull request
Copy link
Contributor

@Alanxtl Alanxtl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@Alanxtl Alanxtl added 🧹 Updates 3.3.2 version 3.3.2 labels Feb 19, 2026
@Alanxtl Alanxtl merged commit 2fef526 into apache:develop Feb 19, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Enhancement] Complete delete config package

3 participants