Skip to content

Commit 6727686

Browse files
ci(olean_report): use lake env instead of lake exec to invoke cache binary (#38712)
The fix in #38706 was broken. `lake exec` treats its first argument as a Lake target specifier, so it rejects absolute paths containing multiple slashes. `lake env <cmd>` sets up LEAN_PATH and other Lake environment variables for the current package, then execs the command directly — which is what we need. Prepared with Claude code.
1 parent d65ebab commit 6727686

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/olean_report.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ jobs:
174174
continue-on-error: true
175175
run: |
176176
cd pr-branch
177-
lake exec "$CACHE_BIN" get
177+
lake env "$CACHE_BIN" get
178178
179179
- name: Check PR head oleans
180180
id: pr_oleans_check
@@ -195,7 +195,7 @@ jobs:
195195
continue-on-error: true
196196
run: |
197197
cd base
198-
lake exec "$CACHE_BIN" get
198+
lake env "$CACHE_BIN" get
199199
200200
- name: Generate olean report
201201
if: steps.check_trigger.outputs.triggered == 'true'

0 commit comments

Comments
 (0)