Skip to content

Centralize the tempfile dev-dependency in workspace deps#516

Open
MGudgin wants to merge 3 commits into
mainfrom
user/gudge/tempfile-workspace-dep
Open

Centralize the tempfile dev-dependency in workspace deps#516
MGudgin wants to merge 3 commits into
mainfrom
user/gudge/tempfile-workspace-dep

Conversation

@MGudgin

@MGudgin MGudgin commented Jun 11, 2026

Copy link
Copy Markdown
Member

This PR lifts the duplicated tempfile dev-dependency into the workspace so crates inherit a single pinned version instead of each pinning tempfile = "3" independently.

Details

  • Add tempfile to [workspace.dependencies] in src/Cargo.toml.
  • Switch appcontainer/common, wslc/common, and wxc_host_prep from tempfile = "3" to tempfile.workspace = true.

Tests

  • cargo metadata resolves the workspace cleanly.

Copilot AI review requested due to automatic review settings June 11, 2026 16:22
@MGudgin MGudgin requested a review from a team as a code owner June 11, 2026 16:22
This PR lifts the duplicated tempfile dev-dependency into the workspace so
crates inherit a single pinned version instead of each pinning tempfile = "3"
independently.

Details

* Add tempfile to [workspace.dependencies] in src/Cargo.toml.
* Switch appcontainer/common, wslc/common, and wxc_host_prep from
  tempfile = "3" to tempfile.workspace = true.

Tests

* cargo metadata resolves the workspace cleanly.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@MGudgin MGudgin force-pushed the user/gudge/tempfile-workspace-dep branch from 94cece1 to a5c98d5 Compare June 11, 2026 16:26

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Centralizes the tempfile dev-dependency version at the Rust workspace level so individual crates can inherit a single pinned version, reducing duplication and dependency drift risk across the workspace.

Changes:

  • Add tempfile = "3" to src/Cargo.toml [workspace.dependencies].
  • Switch multiple crates’ [dev-dependencies] from tempfile = "3" to tempfile.workspace = true.
Show a summary per file
File Description
src/Cargo.toml Adds tempfile to workspace dependencies for centralized versioning.
src/backends/appcontainer/common/Cargo.toml Inherits tempfile version from the workspace for dev-deps.
src/backends/wslc/common/Cargo.toml Inherits tempfile version from the workspace for dev-deps.
src/host/wxc_host_prep/Cargo.toml Inherits tempfile version from the workspace for dev-deps.

Copilot's findings

  • Files reviewed: 4/4 changed files
  • Comments generated: 2

Comment thread src/Cargo.toml
Comment thread src/Cargo.toml
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@MGudgin

MGudgin commented Jun 12, 2026

Copy link
Copy Markdown
Member Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

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.

3 participants