Skip to content

Commit 4c7bd01

Browse files
xgopilot[bot]xgopilotluoliwoshang
authored
chore(build): add .claude/skills for updating llgo version (#672)
* build: add .claude/skills for updating llgo version Add a Claude skill file that documents the step-by-step process for updating the llgo dependency version across go.mod, CI workflows, and the setup action. Generated with [codeagent](https://github.com/qbox/codeagent) Co-authored-by: luoliwoshang <51194195+luoliwoshang@users.noreply.github.com> * build: improve update-llgo-version skill with frontmatter and better instructions - Add YAML frontmatter (name, description) for proper skill triggering - Replace manual go.mod editing with idiomatic `go get` workflow - Add step to detect current version for commit message - Consolidate workflow file updates into a single clear step - Remove redundant "When to Use" section (now in description field) - Add explanatory context for why `go get` is preferred Generated with [codeagent](https://github.com/qbox/codeagent) Co-authored-by: luoliwoshang <51194195+luoliwoshang@users.noreply.github.com> --------- Co-authored-by: xgopilot <noreply@goplus.org> Co-authored-by: luoliwoshang <51194195+luoliwoshang@users.noreply.github.com>
1 parent 0c11883 commit 4c7bd01

File tree

1 file changed

+62
-0
lines changed

1 file changed

+62
-0
lines changed
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
---
2+
name: update-llgo-version
3+
description: Update the github.com/goplus/llgo dependency version across the llcppg project — Go module, CI workflows, and setup action. Use this skill whenever the user asks to bump, update, or upgrade the llgo version, or mentions changing the llgo dependency, even if they don't use the exact phrase "update llgo version".
4+
---
5+
6+
# Update LLGo Version
7+
8+
Update `github.com/goplus/llgo` to a new version across the entire project. Six files reference the llgo version and they all need to stay in sync.
9+
10+
## Instructions
11+
12+
Given a target version (e.g., `v0.14.0`):
13+
14+
### Step 1: Detect the current version
15+
16+
Read `go.mod` and note the current `github.com/goplus/llgo` version — you'll need it for the commit message.
17+
18+
### Step 2: Update Go module dependency
19+
20+
Use `go get` to update the module dependency, then tidy:
21+
22+
```bash
23+
go get github.com/goplus/llgo@<target_version>
24+
go mod tidy
25+
```
26+
27+
This updates both `go.mod` and `go.sum` automatically. Using `go get` is safer than manually editing `go.mod` because it resolves transitive dependencies correctly.
28+
29+
### Step 3: Update CI workflow matrices
30+
31+
Three workflow files have a `strategy.matrix.llgo` entry that pins the llgo version. Update each one:
32+
33+
- `.github/workflows/go.yml` — line with `llgo: [...]`
34+
- `.github/workflows/end2end.yml` — line with `llgo: [...]`
35+
- `.github/workflows/gentest.yml` — line with `llgo: [...]`
36+
37+
Replace the version in the `llgo` array, e.g., `llgo: [v0.14.0]`.
38+
39+
### Step 4: Update the setup action default
40+
41+
In `.github/actions/setup-llcppg/action.yml`, update the `default` value for the `llgo` input to match the new version.
42+
43+
## Verification
44+
45+
After making all changes, run these commands to confirm nothing is broken:
46+
47+
```bash
48+
go mod tidy
49+
go build -v ./...
50+
go vet ./...
51+
go test -v ./config ./internal/name ./internal/arg ./internal/unmarshal
52+
```
53+
54+
These are the fast unit tests. If they pass, the version bump is safe to commit.
55+
56+
## Commit Convention
57+
58+
```
59+
build(deps): bump github.com/goplus/llgo from <old_version> to <new_version>
60+
```
61+
62+
Replace `<old_version>` with the version you noted in Step 1 and `<new_version>` with the target version.

0 commit comments

Comments
 (0)