Skip to content

Conversation

epage
Copy link
Contributor

@epage epage commented Oct 8, 2025

What does this PR try to resolve?

build-dirs templating was modeled off of the target-dir for cargo scripts but the root dir and hashing are currently duplicated. This consolidates the logic by defining the cargo script target-dir as {cargo-cache-home}/target/{workspace-path-hash}.

This also serves as preparation for splitting cargo scripts build-dir and target-dir.

How to test and review this PR?

@rustbot rustbot added A-configuration Area: cargo config files and env vars A-workspaces Area: workspaces S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Oct 8, 2025
@rustbot
Copy link
Collaborator

rustbot commented Oct 8, 2025

r? @ehuss

rustbot has assigned @ehuss.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Definition::Path(p) | Definition::Cli(Some(p)) => p.display().fmt(f),
Definition::Environment(key) => write!(f, "environment variable `{}`", key),
Definition::Cli(None) => write!(f, "--config cli option"),
Definition::BuiltIn => write!(f, "defaula"),
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
Definition::BuiltIn => write!(f, "defaula"),
Definition::BuiltIn => write!(f, "default"),

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-configuration Area: cargo config files and env vars A-workspaces Area: workspaces S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants