Skip to content

Prestaging for air-gapped bootstrap #83455

Description

@smijolovic

Is there a way to pull the three tar files (rust-std, rustc, cargo) prior to the build stage for bootstrapping in an environment without connectivity?

In bootstrap.py,:
download_stage0

Pulls the three tar files and extracts them. I see that ./x.py accepts stage builds...but is there a way to call download_stage0 to package the tar files for packaging?

Activity

  1. added
    T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
    C-feature-requestCategory: A feature request, i.e: not implemented / a PR.
    on Mar 25, 2021
  2. jyn514 commented on Jun 22, 2022

    @jyn514
    Member

    This is pretty easy to add if someone wants to tackle it - add a new argument to bootstrap.py and exit early after

    build.download_toolchain()
    if it's set.

    @rustbot label +E-easy +E-mentor

  3. added
    E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
    E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.
    on Jun 22, 2022
  4. rornic commented on Jun 23, 2022

    @rornic

    I can pick this up. It'd be my first contribution here.

    @rustbot claim

  5. removed their assignment
    on Jul 9, 2022
  6. jyn514 commented on Sep 19, 2022

    @jyn514
    Member

    I'm going to close this until I hear back about whether make prepare does what you want. #98464 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-feature-requestCategory: A feature request, i.e: not implemented / a PR.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions