Skip to content

Allow build and preview scripts to run from another directory - #732

Open
Chessing234 wants to merge 1 commit into
teorth:mainfrom
Chessing234:codex/build-from-any-directory
Open

Chessing234 wants to merge 1 commit into
teorth:mainfrom
Chessing234:codex/build-from-any-directory

Conversation

@Chessing234

Copy link
Copy Markdown
Contributor

Running /path/to/analysis/build.sh from another directory invokes Lake in that directory, while serve.py looks for generated pages beneath the caller's working directory. Anchor the build scripts and preview paths to their own repository location so absolute-path invocation works.

Validation: a temporary checkout whose path contains spaces runs both scripts from an unrelated directory using a Lake stub, verifies all six Lake invocations use the checkout, and checks both preview roots. The regression fails on main and passes after the fix. Shell syntax and whitespace checks pass; no Lean sources change.

AI assistance: OpenAI Codex.

This branch has not been deployed

No deployments
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.

1 participant