mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-08-13 00:45:11 +09:00
Resolve clusterio through CLUSTERIO rather than in ci only
The library path was injected by the workflow, so an editor opened on this repo could not resolve `modules/clusterio/*`. It now comes from the environment in both places. It cannot be written relative to this repo: emmylua does not normalise `..` in a library path, and an absolute path containing `..` fails the same way, so the location has to come from outside. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -6,6 +6,7 @@ on:
|
||||
|
||||
env:
|
||||
EMMYLUA_CHECK_VERSION: "0.24.0"
|
||||
CLUSTERIO: ${{ github.workspace }}/.clusterio
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
@@ -36,9 +37,9 @@ jobs:
|
||||
- name: Run Lint Report
|
||||
shell: bash
|
||||
run: |
|
||||
# Library paths are machine specific, so they are merged in rather than committed
|
||||
jq -n --arg lib "$RUNNER_TEMP/factorio/library" --arg clusterio "$PWD/.clusterio/packages/host" \
|
||||
'{ workspace: { library: [ $lib, $clusterio ], ignoreGlobs: [ ".clusterio/**" ] } }' \
|
||||
# The typedefs are generated per run, clusterio comes from CLUSTERIO above
|
||||
jq -n --arg lib "$RUNNER_TEMP/factorio/library" \
|
||||
'{ workspace: { library: [ $lib ], ignoreGlobs: [ ".clusterio/**" ] } }' \
|
||||
> "$RUNNER_TEMP/ci.emmyrc.json"
|
||||
|
||||
# Exits non zero on error severity, so the gate below is used instead
|
||||
|
||||
Reference in New Issue
Block a user