Skip to content

fix: ensure dev/llgo.sh always rebuilds with -tags=dev#1519

Merged
xushiwei merged 2 commits intomainfrom
xgopilot/claude/issue-1518-1767354407
Jan 3, 2026
Merged

fix: ensure dev/llgo.sh always rebuilds with -tags=dev#1519
xushiwei merged 2 commits intomainfrom
xgopilot/claude/issue-1518-1767354407

Conversation

@xgopilot
Copy link
Contributor

@xgopilot xgopilot bot commented Jan 2, 2026

Requested by @cpunion

Fixes #1518

Summary

This PR ensures that dev/llgo.sh always rebuilds the llgo CLI with the -tags=dev flag, addressing the issue where the wrapper would reuse an existing binary built without the dev tag.

Changes

  • Modified dev/_llgo_setup.sh:53 to use go install -tags=dev ./cmd/llgo instead of go install ./cmd/llgo

Impact

Every invocation of dev/llgo.sh will now properly use the dev build of llgo, regardless of whether a binary already exists at $GOBIN/llgo.

This fixes issue #1518 where dev/llgo.sh would skip rebuilding
with the dev tag when the llgo binary already exists.

Now dev/_llgo_setup.sh uses 'go install -tags=dev ./cmd/llgo'
instead of 'go install ./cmd/llgo' to ensure the dev build
is always used.

Generated with [codeagent](https://github.com/qbox/codeagent)
Co-authored-by: cpunion <[email protected]>
Remove conditional checks in _llgo_ensure_llgo_cli and always
run 'go install -tags=dev ./cmd/llgo' on every invocation.

This ensures the dev build is always used regardless of whether
the binary exists or files have changed.

Generated with [codeagent](https://github.com/qbox/codeagent)
Co-authored-by: cpunion <[email protected]>
@codecov
Copy link

codecov bot commented Jan 2, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.03%. Comparing base (ef4877e) to head (2e6ecd0).
⚠️ Report is 7 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1519      +/-   ##
==========================================
- Coverage   91.07%   91.03%   -0.04%     
==========================================
  Files          45       45              
  Lines       11996    11996              
==========================================
- Hits        10925    10921       -4     
- Misses        895      899       +4     
  Partials      176      176              

☔ 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@xushiwei xushiwei merged commit e5b48e8 into main Jan 3, 2026
42 of 43 checks passed
@xgopilot xgopilot bot deleted the xgopilot/claude/issue-1518-1767354407 branch January 3, 2026 00:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

dev/llgo.sh skips go install -tags=dev

2 participants