Skip to content

Commit 615fbda

Browse files
author
simuleite
committed
Solve CI Problems
1 parent 717c063 commit 615fbda

File tree

2 files changed

+12
-15
lines changed

2 files changed

+12
-15
lines changed

.github/workflows/regression.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,22 +22,24 @@ jobs:
2222
['ASTVersion']
2323
['Modules']['a.b/c']['Dependencies']['a.b/c']
2424
['Modules']['a.b/c/cmdx']['Dependencies']['a.b/c/cmdx']
25+
['NameToFile']
26+
['NameToLocations']
2527
steps:
2628
- name: Checkout pull request code
2729
uses: actions/checkout@v4
2830
with:
29-
path: 'pr_repo'
31+
path: "pr_repo"
3032

3133
- name: Checkout main branch code
3234
uses: actions/checkout@v4
3335
with:
34-
ref: 'main'
35-
path: 'main_repo'
36+
ref: "main"
37+
path: "main_repo"
3638

3739
- name: Setup Go environment
3840
uses: actions/setup-go@v5
3941
with:
40-
go-version: '1.22'
42+
go-version: "1.22"
4143
cache-dependency-path: |
4244
main_repo/go.sum
4345
pr_repo/go.sum
@@ -51,18 +53,18 @@ jobs:
5153
- name: Setup Python environment
5254
uses: actions/setup-python@v5
5355
with:
54-
python-version: '3.11'
56+
python-version: "3.11"
5557

5658
- name: Setup JDK 21
5759
uses: actions/setup-java@v4
5860
with:
59-
java-version: '21'
60-
distribution: 'temurin'
61+
java-version: "21"
62+
distribution: "temurin"
6163

6264
- name: Setup Node.js
6365
uses: actions/setup-node@v4
6466
with:
65-
node-version: '22'
67+
node-version: "22"
6668

6769
- name: Compile both binaries
6870
run: |
@@ -82,8 +84,7 @@ jobs:
8284
echo "JDTLS_ROOT_PATH=$(realpath ./main_repo/lang/java/lsp/jdtls/jdt-language-server-*)" >> $GITHUB_ENV
8385
8486
- name: Run OLD abcoder
85-
run:
86-
OUTDIR=out_old ABCEXE=./abcoder_old ./main_repo/script/run_testdata.sh all
87+
run: OUTDIR=out_old ABCEXE=./abcoder_old ./main_repo/script/run_testdata.sh all
8788

8889
- name: Reset dependencies
8990
run: |
@@ -95,8 +96,7 @@ jobs:
9596
OUTDIR=out_new ABCEXE=./abcoder_new ./pr_repo/script/run_testdata.sh first
9697
9798
- name: Run NEW abcoder
98-
run:
99-
OUTDIR=out_new ABCEXE=./abcoder_new ./pr_repo/script/run_testdata.sh all
99+
run: OUTDIR=out_new ABCEXE=./abcoder_new ./pr_repo/script/run_testdata.sh all
100100

101101
- name: Upload output directories
102102
uses: actions/upload-artifact@v4

lang/golang/parser/pkg.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -276,9 +276,6 @@ func (p *GoParser) loadPackages(mod *Module, dir string, pkgPath PkgPath) (err e
276276
if f.Package == "" {
277277
f.Package = pkg.ID
278278
f.Imports = imports.Origins
279-
// [新增] 填充 ModPath 和 PkgPath
280-
f.ModPath = mod.Name
281-
f.PkgPath = pkg.ID
282279
}
283280
if err := p.parseFile(ctx, file); err != nil {
284281
return err

0 commit comments

Comments
 (0)