Repository navigation
Go: rename ragflow_cli to ragflow-cli - #16270
Conversation
Signed-off-by: Jin Hai <[email protected]>
📝 WalkthroughWalkthroughAll references to the CLI binary name are renamed from ChangesCLI Binary Rename:
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related PRs
Suggested labels
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@build.sh`:
- Line 20: The RAGFLOW_CLI_BINARY variable assignment uses the old file path
naming convention. Update the build source path in the RAGFLOW_CLI_BINARY
assignment from cmd/ragflow_cli.go (underscore convention) to cmd/ragflow-cli.go
(hyphen convention) to match the naming used in the release workflow. This
ensures that both local builds via build.sh and CI builds through the release
workflow reference the same source file path and prevents build inconsistencies.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: f6eb629d-8438-4166-b145-3ba6a929c648
📒 Files selected for processing (9)
.github/workflows/release.ymlbuild.shinternal/agent/component/runtime_wire.gointernal/cli/README.mdinternal/cli/cli.gointernal/development.mdtools/scripts/INSTALL_SCRIPTS_README.mdtools/scripts/install.ps1tools/scripts/install.sh
| ADMIN_SERVER_BINARY="$PROJECT_ROOT/bin/admin_server" | ||
| INGESTOR_BINARY="$PROJECT_ROOT/bin/ingestor" | ||
| RAGFLOW_CLI_BINARY="$PROJECT_ROOT/bin/ragflow_cli" | ||
| RAGFLOW_CLI_BINARY="$PROJECT_ROOT/bin/ragflow-cli" |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟠 Major | ⚡ Quick win
CLI rename is incomplete in build.sh entrypoint wiring.
RAGFLOW_CLI_BINARY was renamed, but this script still builds from cmd/ragflow_cli.go while the release workflow uses ./cmd/ragflow-cli.go. Keep both paths aligned to avoid local-vs-CI build drift/failures.
Suggested fix
+RAGFLOW_CLI_MAIN="$PROJECT_ROOT/cmd/ragflow-cli.go"
@@
- go build -o "$RAGFLOW_CLI_BINARY" cmd/ragflow_cli.go
+ go build -o "$RAGFLOW_CLI_BINARY" "$RAGFLOW_CLI_MAIN"🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@build.sh` at line 20, The RAGFLOW_CLI_BINARY variable assignment uses the old
file path naming convention. Update the build source path in the
RAGFLOW_CLI_BINARY assignment from cmd/ragflow_cli.go (underscore convention) to
cmd/ragflow-cli.go (hyphen convention) to match the naming used in the release
workflow. This ensures that both local builds via build.sh and CI builds through
the release workflow reference the same source file path and prevents build
inconsistencies.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #16270 +/- ##
=======================================
Coverage 93.16% 93.16%
=======================================
Files 10 10
Lines 717 717
Branches 118 118
=======================================
Hits 668 668
Misses 29 29
Partials 20 20 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
What problem does this PR solve?
rename ragflow cli binary
Type of change