Skip to content

bootstrap: Rename profile = user to profile = dist #112074

Description

@jyn514

config.user.toml currently says:

# These defaults are meant for users and distro maintainers building from source, without intending to make multiple changes.

"users" is so ambiguous as to be meaningless. What I originally intended was something like "people building from source once and installing it locally", like Gentoo users or something. I think "dist" is a much better name for this profile: it makes it more clear why CI uses the profile and it hopefully will make it easier for distros to find and understand.

cc @cuviper - you said in https://rust-lang.zulipchat.com/#narrow/stream/233931-t-compiler.2Fmajor-changes/topic/Redesign.20bootstrap.20stages.20compiler-team.23619/near/351408631 this would be helpful, do you still think that? The only other name I can think of is something like install but I'm not sure that's a good description of what CI is doing with the profile.

Activity

  1. added
    T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
    on May 29, 2023
  2. jyn514 commented on May 29, 2023

    @jyn514
    MemberAuthor

    Mentoring instructions: I want to do this in a backwards compatible way, so that old config files keep working seamlessly. To do this you'll need to add a way to add aliases to profiles. Take a look around

    rust/src/bootstrap/config.rs

    Lines 994 to 1002 in 5e2969e

    if let Some(include) = &toml.profile {
    let mut include_path = config.src.clone();
    include_path.push("src");
    include_path.push("bootstrap");
    include_path.push("defaults");
    include_path.push(format!("config.{}.toml", include));
    let included_toml = get_toml(&include_path);
    toml.merge(included_toml);
    }
    and change it to treat user the same as dist. Then rename the relevant places around
    Please add a test in src/bootstrap/config/tests.rs once you're done.

  3. added
    E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
    E-help-wantedCall for participation: Help is requested to fix this issue.
    on May 29, 2023
  4. added a commit that references this issue on May 29, 2023
  5. jyn514 commented on May 31, 2023

    @jyn514
    MemberAuthor

    @AnakinSkywalkeer you should talk to @Swarnlataaa - they have #112078 open but it's broken, I'm not sure of the status.

  6. added a commit that references this issue on Jun 2, 2023
    dd09f4d
  7. jyn514 commented on Jun 3, 2023

    @jyn514
    MemberAuthor

    this wasn't done properly #112166 (comment)

  8. reopened this on Jun 3, 2023
  9. zephaniahong commented on Jun 23, 2023

    @zephaniahong
    Contributor

    @AnakinSkywalkeer Hi! Are you planning to continue working on this issue?

  10. added a commit that references this issue on Jun 27, 2023
    1153aba
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

    E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.E-help-wantedCall for participation: Help is requested to fix this issue.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