Skip to content

Conversation

@jcreedcmu
Copy link
Contributor

@jcreedcmu jcreedcmu commented Sep 17, 2025

When doing elan show after

elan toolchain link lean4-pgit /home/user/build/release/stage1

the output now shows

installed toolchains
--------------------

lean4 (linked to local path /home/user/build/release/stage1)
leanprover/lean4:v4.22.0
leanprover/lean4:v4.23.0 (resolved from default 'stable')
leanprover/lean4:v4.24.0-rc1

active toolchain
----------------

leanprover/lean4:v4.23.0 (resolved from default 'stable')
Lean (version 4.23.0, x86_64-unknown-linux-gnu, commit 50aaf682e9b74ab92880292a25c68baa1cc81c87, Release)

with the novelty being the (linked to local path /home/user/build/release/stage1) message.

When doing `elan show` after

```
elan toolchain link lean4-pgit /home/user/build/release/stage1
```

the output now shows

```
installed toolchains
--------------------

lean4 (linked to local path /home/user/build/release/stage1)
leanprover/lean4:v4.22.0
leanprover/lean4:v4.23.0 (resolved from default 'stable')
leanprover/lean4:v4.24.0-rc1

active toolchain
----------------

leanprover/lean4:v4.23.0 (resolved from default 'stable')
Lean (version 4.23.0, x86_64-unknown-linux-gnu, commit 50aaf682e9b74ab92880292a25c68baa1cc81c87, Release)
```

with the novelty being the "(linked to local path
/home/user/build/release/stage1)" message.
@jcreedcmu jcreedcmu requested a review from Kha September 17, 2025 16:22
use crate::errors::*;
use crate::notifications::Notification;
use dirs;
use json;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is just rustfmt, happy to remove if it's undesired noise

let releases = json::parse(&json)
.chain_err(|| format!("failed to parse release data: {}", url))?;
releases[channel][0]["name"].as_str()
let releases =
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also just rustfmt

return Err(Error::from(
format!("channel 'beta' is not supported for custom origin '{}'", origin)
));
return Err(Error::from(format!(
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also just rustfmt

if let Some(path) = get_toolchain_local_target(&cfg, &t)? {
println!(
"{} (linked to local path {})",
&t,
Copy link
Contributor Author

@jcreedcmu jcreedcmu Sep 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be mk_toolchain_label(&t, &default_tc, &resolved_default_tc) instead of just &t? I'm not sure about the potential for different decorations to overlap.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, seems fine

@Kha Kha merged commit 656e9b7 into leanprover:master Sep 22, 2025
5 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.

2 participants