Skip to content

The test check_updates_some may be accessing the internet #2663

@kinnison

Description

@kinnison

Problem

When running the test check_updates_some, and therefore likely others which test these code pathways, the internet is accessed in order to check for rustup updates.

Likely this is missing a RUSTUP_UPDATE_ROOT or similar in the environment during the running of those tests since normally we force --no-self-update etc. on appropriate CLI calls.

Steps

  1. turn off your wifi/internet connection
  2. cargo test --test cli-exact -- check_updates_some
  3. see if it goes badly, and if so, deal with the fix.

Possible Solution(s)

Likely we simply need to either add a --no-self-update type argument to rustup check or else we need to correctly set up a RUSTUP_UPDATE_ROOT or whatever environment variable is missing.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions