Lack of the ways to rewrite hardcoded URL

Open
#219 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

  • #1 by @hehaoqian — closed without merging

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
52/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
rust
Domain
cli

Research direction

Start with src/elan-dist/src/manifestation.rs, where the issue says release and GitHub URLs are hardcoded, and compare how ELAN_UPDATE_ROOT is used with rustup’s RUSTUP_DIST_SERVER and RUSTUP_UPDATE_ROOT. Trace the URL construction and its callers to determine which mirror settings need to be configurable. Done means users can redirect the affected URLs through environment variables in enterprise network environments.

Written by the indexing model from the issue text.

Description

In https://github.com/leanprover/elan/blob/master/src/elan-dist/src/manifestation.rs,

The url of https://release.lean-lang.org and https://github.com are hardcoded.

In enterprise network environment, these url may be blocked,
but mirror of https://release.lean-lang.org and https://github.com may exist.

rustup provides the environment variable RUSTUP_DIST_SERVER and RUSTUP_UPDATE_ROOT,
but elan only provides ELAN_UPDATE_ROOT

Dominant language
Rust
Stars
719
Forks
62
Avg merge
13m
Merged PRs (30d)
2

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from leanprover/elan

All issues in leanprover/elan

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.