Skip to content

Go: fix cgo build - #16724

Merged
JinHai-CN merged 1 commit into
infiniflow:mainfrom
JinHai-CN:fix527
Jul 7, 2026
Merged

JinHai-CN merged 1 commit into
infiniflow:mainfrom
JinHai-CN:fix527

Conversation

@JinHai-CN

Copy link
Copy Markdown
Member

No description provided.

Signed-off-by: Jin Hai <[email protected]>
@JinHai-CN
JinHai-CN marked this pull request as ready for review July 7, 2026 13:15
@JinHai-CN
JinHai-CN merged commit cb93883 into infiniflow:main Jul 7, 2026
1 check passed
@dosubot dosubot Bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Jul 7, 2026
@coderabbitai

coderabbitai Bot commented Jul 7, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 22716732-f871-4c0e-b917-ef9bac9af156

📥 Commits

Reviewing files that changed from the base of the PR and between 2b95fa2 and 104f296.

📒 Files selected for processing (1)
  • .github/workflows/release.yml

📝 Walkthrough

Walkthrough

The release workflow now explicitly disables CGO for Go CLI builds on both non-Windows and Windows runners.

Changes

Release Workflow CGO Configuration

Layer / File(s) Summary
Disable CGO across build platforms
.github/workflows/release.yml
Non-Windows go build is prefixed with CGO_ENABLED=0 alongside GOOS/GOARCH, and the Windows PowerShell build step sets $env:CGO_ENABLED = "0" before go build.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Possibly related PRs

  • infiniflow/ragflow#16082: Both PRs modify the Go CLI build logic in .github/workflows/release.yml related to CGO configuration.
  • infiniflow/ragflow#16184: Both PRs modify the same release.yml Go CLI build steps' CGO setup for Windows and non-Windows.
  • infiniflow/ragflow#16191: Both PRs modify the Windows Go CLI build environment setup before go build in the same workflow.

Suggested labels: ci

Poem

A hop, a skip, a build so neat,
No CGO now to slow my feet.
Windows, Linux, side by side,
Pure Go binaries, built with pride.
🐇✨


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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant