Skip to content

Fix double-live path error in JupyterLite build - #1

Draft
obonhamcarter with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-failing-github-actions-job-build
Draft

Fix double-live path error in JupyterLite build#1
obonhamcarter with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-failing-github-actions-job-build

Conversation

Copilot AI commented Aug 1, 2026

Copy link
Copy Markdown

The Build JupyterLite CI step failed with FileNotFoundError because jupyterlite-core was constructing an invalid output path docs/live/live/jupyter-lite.json.

Root cause

Running from the project root with --output-dir docs/live, jupyterlite-core found jupyter-lite.json at live/jupyter-lite.json (relative to cwd) and preserved that relative path when writing to the output dir — yielding docs/live + live/jupyter-lite.json = docs/live/live/jupyter-lite.json.

Fix

Run the build from within live/, so jupyterlite-core sees jupyter-lite.json at its cwd root (no subdirectory prefix). The existing live/jupyter_lite_config.json (with "contents": ["content"]) is picked up automatically, eliminating the need for an explicit --contents flag.

- python -m jupyterlite_core.app build --contents live/content --output-dir docs/live
+ cd live && python -m jupyterlite_core.app build --output-dir ../docs/live

Copilot AI changed the title [WIP] Fix failing GitHub Actions job build Fix double-live path error in JupyterLite build Aug 1, 2026
Copilot AI requested a review from obonhamcarter August 1, 2026 21:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants