Skip to content

Conversation

@kim-em
Copy link
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>
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

1 participant