Skip to content

feat: print notice when using a directory override#190

Merged
Kha merged 3 commits intoleanprover:masterfrom
kim-em:override-notice
Feb 19, 2026
Merged

feat: print notice when using a directory override#190
Kha merged 3 commits intoleanprover:masterfrom
kim-em:override-notice

Conversation

@kim-em
Copy link
Copy Markdown
Contributor

@kim-em kim-em commented Feb 5, 2026

When a directory override is active (set via elan override set), print a notice to stderr showing the toolchain and path being used. This helps users catch stale overrides that may cause confusing build failures.

Example output:

note: using toolchain 'leanprover/lean4:v4.27.0-rc1' from override set on '/path/to/project'
note: to remove: elan override unset --path '/path/to/project' | to suppress: ELAN_NO_OVERRIDE_NOTICE=1

The notice can be suppressed by setting ELAN_NO_OVERRIDE_NOTICE=1 for scripts or CI environments.

Closes #189

🤖 Prepared with Claude Code

When a directory override is active (set via `elan override set`),
print a notice to stderr showing the toolchain and path being used.
This helps users catch stale overrides that may cause confusing build
failures.

The notice can be suppressed by setting `ELAN_NO_OVERRIDE_NOTICE=1`
for scripts or CI environments.

Closes leanprover#189

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@Kha Kha enabled auto-merge (squash) February 19, 2026 08:46
@Kha Kha merged commit fb43734 into leanprover:master Feb 19, 2026
10 checks passed
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.

Print notice when using a directory override

2 participants