Skip to content

Commit 45855de

Browse files
committed
fix(chapel-ci): seed MANPATH default before sourcing setchplenv.bash
util/setchplenv.bash references ${MANPATH} unconditionally. Under set -euo pipefail on a clean GH runner (MANPATH not exported), this trips 'MANPATH: unbound variable' and aborts before chpl --make even starts. Fix: export MANPATH=${MANPATH:-} in both 'Build Chapel from source' and 'Activate multilocale Chapel' steps.
1 parent bfbeaa3 commit 45855de

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/chapel-ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,9 @@ jobs:
308308
export CHPL_COMM_SUBSTRATE=smp
309309
export CHPL_LAUNCHER=smp
310310
export CHPL_TARGET_COMPILER=gnu
311+
# setchplenv.bash references ${MANPATH} unconditionally; GH runners
312+
# don't export MANPATH by default, so seed it before sourcing.
313+
export MANPATH="${MANPATH:-}"
311314
source util/setchplenv.bash
312315
# Build chpl + runtime + GASNet+smp substrate
313316
make -j"$(nproc)"
@@ -319,6 +322,7 @@ jobs:
319322
run: |
320323
set -euo pipefail
321324
export CHPL_HOME="${{ env.CHAPEL_MULTILOCALE_HOME }}"
325+
export MANPATH="${MANPATH:-}"
322326
source "$CHPL_HOME/util/setchplenv.bash"
323327
# Persist env to subsequent steps via GITHUB_ENV
324328
{

0 commit comments

Comments
 (0)