Skip to content
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

feat: log RUSTUP_UPDATE_ROOT, RUSTUP_DIST_SERVER or RUSTUP_DIST_ROOT on RUSTUP_DEBUG #3722

Merged
merged 6 commits into from
Apr 15, 2024

Conversation

rami3l
Copy link
Member

@rami3l rami3l commented Mar 18, 2024

Closes #3680.

This PR makes log the value(s) of RUSTUP_UPDATE_ROOT, RUSTUP_DIST_SERVER or RUSTUP_DIST_ROOT if:

  • The environment variable is itself set, and
  • RUSTUP_DEBUG is set.

This is a tiny yet important feature addition for our users who need to manually designate a Rustup update/dist server, either because they have to use a mirror server for acceleration, or because they need to switch to the dev environment for beta testing.

The RUSTUP_DEBUG predicate minimizes both the extra noise and the required changes to the current test suite.

@rami3l rami3l requested a review from djc March 18, 2024 06:06
@rami3l

This comment was marked as outdated.

@rami3l rami3l marked this pull request as draft March 18, 2024 06:41
src/cli/self_update.rs Outdated Show resolved Hide resolved
src/config.rs Outdated Show resolved Hide resolved
@rami3l rami3l changed the title feat: log the value(s) of RUSTUP_UPDATE_ROOT, RUSTUP_DIST_SERVER or RUSTUP_DIST_ROOT if set feat: log RUSTUP_UPDATE_ROOT, RUSTUP_DIST_SERVER or RUSTUP_DIST_ROOT on RUSTUP_DEBUG Apr 12, 2024
@rami3l rami3l requested a review from rbtcollins April 12, 2024 01:52
@rami3l rami3l marked this pull request as ready for review April 12, 2024 10:20
@rami3l rami3l requested a review from rbtcollins April 14, 2024 08:11
Copy link
Contributor

@djc djc left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@rami3l rami3l enabled auto-merge April 15, 2024 01:35
@rami3l rami3l mentioned this pull request Apr 15, 2024
3 tasks
@rami3l rami3l added this pull request to the merge queue Apr 15, 2024
Merged via the queue into master with commit 8f9fe8f Apr 15, 2024
21 checks passed
@rami3l rami3l deleted the feat/log-registry branch April 15, 2024 02:31
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.

Log the registry used when run rustup update/install (and other commands use registry).
3 participants