8000 feat: lake: avoid use of Lean root directories by tydeu · Pull Request #8981 · leanprover/lean4 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

feat: lake: avoid use of Lean root directories #8981

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jun 25, 2025

Conversation

tydeu
Copy link
Member
@tydeu tydeu commented Jun 24, 2025

This PR removes Lake's usage of lean -R and moduleNameOfFileName to pass module names to Lean. For workspace names, it now relies on directly passing the module name through lean --setup. For non-workspace modules passed to lake lean or lake setup-file, it uses a fixed module name of _unknown.

This means that lake lean and lake setup-file can be successfully and consistently used on modules that do not lie under the working directory or the workspace root.

@tydeu tydeu added the changelog-lake Lake label Jun 24, 2025
@tydeu tydeu force-pushed the lake/no-root-dir branch from f0f00d9 to 1202ddf Compare June 25, 2025 00:15
@github-actions github-actions bot added the toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN label Jun 25, 2025
@leanprover-community-bot
Copy link
Collaborator

Mathlib CI status (docs):

  • ❗ Batteries CI can not be attempted yet, as the nightly-testing-2025-06-24 tag does not exist there yet. We will retry when you push more commits. If you rebase your branch onto nightly-with-mathlib, Batteries CI should run now. You can force Mathlib CI using the force-mathlib-ci label. (2025-06-25 00:37:48)

@tydeu tydeu marked this pull request as ready for review June 25, 2025 00:54
@tydeu tydeu enabled auto-merge June 25, 2025 00:57
@tydeu tydeu added this pull request to the merge queue Jun 25, 2025
Merged via the queue into leanprover:master with commit 311ae61 Jun 25, 2025
16 checks passed
@tydeu tydeu deleted the lake/no-root-dir branch June 25, 2025 02:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog-lake Lake toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0