Skip to content

Commit fcbe2b0

Browse files
akoclaude
andcommitted
fix: pin ANTLR4 version in CI to avoid Maven Central version lookup failure
antlr4-tools queries Maven Central to discover the latest ANTLR4 version on a cold cache. The API returns HTTP 400 on GitHub Actions runners, causing make grammar to fail with FileNotFoundError. Set ANTLR4_TOOLS_ANTLR_VERSION=4.13.2 in the Generate parser step so antlr4-tools skips the version API call and downloads the JAR directly from repo1.maven.org instead. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent a2f42c0 commit fcbe2b0

3 files changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/nightly.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ jobs:
3333
run: pip install 'antlr4-tools==0.2.2'
3434
- name: Generate parser
3535
run: make grammar
36+
env:
37+
ANTLR4_TOOLS_ANTLR_VERSION: '4.13.2'
3638
- name: Build
3739
run: make build
3840

@@ -69,6 +71,8 @@ jobs:
6971
run: pip install 'antlr4-tools==0.2.2'
7072
- name: Generate parser
7173
run: make grammar
74+
env:
75+
ANTLR4_TOOLS_ANTLR_VERSION: '4.13.2'
7276

7377
- name: Check for new commits since last nightly
7478
id: check

.github/workflows/push-test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ jobs:
2222
run: pip install 'antlr4-tools==0.2.2'
2323
- name: Generate parser
2424
run: make grammar
25+
env:
26+
ANTLR4_TOOLS_ANTLR_VERSION: '4.13.2'
2527
- name: Build
2628
run: make build
2729
- name: Test

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ jobs:
2828
run: pip install 'antlr4-tools==0.2.2'
2929
- name: Generate parser
3030
run: make grammar
31+
env:
32+
ANTLR4_TOOLS_ANTLR_VERSION: '4.13.2'
3133
- name: Build release binaries
3234
run: make release
3335
- name: Create GitHub Release

0 commit comments

Comments
 (0)