Skip to content

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

Merged
rami3l merged 6 commits intomasterfrom
feat/log-registry
Apr 15, 2024
Merged

feat: log RUSTUP_UPDATE_ROOT, RUSTUP_DIST_SERVER or RUSTUP_DIST_ROOT on RUSTUP_DEBUG#3722
rami3l merged 6 commits intomasterfrom
feat/log-registry

Conversation

@rami3l
Copy link
Copy Markdown
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
@rami3l rami3l force-pushed the feat/log-registry branch from be73fe0 to b50323e Compare April 12, 2024 01:33
@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
Copy Markdown
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 force-pushed the feat/log-registry branch from 18980b8 to ab27ac4 Compare April 15, 2024 01:32
@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
@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