Skip to content

Commit e3e56b9

Browse files
hyperpolymathclaude
andcommitted
fix(ci): orphan .opam in faces/, Hypatia HOME env var
Two follow-up fixes after the first round of CI corrective work landed two of five but left build/lint/Hypatia still failing. 1. build / lint — `opam install . --deps-only` walks the whole tree for `*.opam` files, finds both `./affinescript.opam` and `./faces/rattlescript/affinescript/affinescript.opam`, and errors with "Public library affinescript is defined twice". The faces/.opam was generated by the deleted faces/dune-project (`generate_opam_files true`) and was orphaned when that file was removed in this branch. The `(dirs :standard \ faces .build)` directive in the root `dune` file excludes faces/ from dune's BUILD scan, but does not affect opam's discovery of `*.opam` files. Removed the orphaned .opam. 2. Hypatia Neurosymbolic Analysis — `working-directory: ${{ env.HOME }}/hypatia` evaluates to `/hypatia` (HOME is not in `env` unless explicitly set as a workflow/job-level env var), and the build step errors with "No such file or directory". Added a job-level `HYPATIA_DIR: /home/runner/hypatia` env var that's visible both to shell (`$HYPATIA_DIR`) and to Actions expressions (`${{ env.HYPATIA_DIR }}`); replaced both call sites. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent b82d014 commit e3e56b9

2 files changed

Lines changed: 11 additions & 56 deletions

File tree

.github/workflows/hypatia-scan.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@ jobs:
1717
scan:
1818
name: Hypatia Neurosymbolic Analysis
1919
runs-on: ubuntu-latest
20+
env:
21+
# ${{ env.HOME }} is empty in working-directory context (HOME is not in
22+
# env unless explicitly set), which makes the directory resolve to "/hypatia"
23+
# and the build step fails with "No such file or directory". A job-level env
24+
# var is visible to both shell ($HYPATIA_DIR) and Actions expressions
25+
# (${{ env.HYPATIA_DIR }}).
26+
HYPATIA_DIR: /home/runner/hypatia
2027

2128
steps:
2229
- name: Checkout repository
@@ -32,12 +39,12 @@ jobs:
3239

3340
- name: Clone Hypatia
3441
run: |
35-
if [ ! -d "$HOME/hypatia" ]; then
36-
git clone https://github.com/hyperpolymath/hypatia.git "$HOME/hypatia"
42+
if [ ! -d "$HYPATIA_DIR" ]; then
43+
git clone https://github.com/hyperpolymath/hypatia.git "$HYPATIA_DIR"
3744
fi
3845
3946
- name: Build Hypatia scanner (if needed)
40-
working-directory: ${{ env.HOME }}/hypatia
47+
working-directory: ${{ env.HYPATIA_DIR }}
4148
run: |
4249
if [ ! -f hypatia-v2 ]; then
4350
echo "Building hypatia-v2 scanner..."
@@ -52,7 +59,7 @@ jobs:
5259
echo "Scanning repository: ${{ github.repository }}"
5360
5461
# Run scanner
55-
HYPATIA_FORMAT=json "$HOME/hypatia/hypatia-cli.sh" scan . > hypatia-findings.json
62+
HYPATIA_FORMAT=json "$HYPATIA_DIR/hypatia-cli.sh" scan . > hypatia-findings.json
5663
5764
# Count findings
5865
FINDING_COUNT=$(jq '. | length' hypatia-findings.json 2>/dev/null || echo 0)

faces/rattlescript/affinescript/affinescript.opam

Lines changed: 0 additions & 52 deletions
This file was deleted.

0 commit comments

Comments
 (0)