Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Make LocalFactory create DFM with repo factory instead of git client - #6302

#6302
Merged
adamzip merged 4 commits into
dotnet:maindotnet/arcade-services:mainfrom
adamzip:fix-update-dependency-globaljson-failureadamzip/arcade-services:fix-update-dependency-globaljson-failureCopy head branch name to clipboard
May 18, 2026
Merged

Make LocalFactory create DFM with repo factory instead of git client#6302
adamzip merged 4 commits into
dotnet:maindotnet/arcade-services:mainfrom
adamzip:fix-update-dependency-globaljson-failureadamzip/arcade-services:fix-update-dependency-globaljson-failureCopy head branch name to clipboard

Conversation

@adamzip

@adamzip adamzip commented May 15, 2026

Copy link
Copy Markdown
Contributor

Copilot AI review requested due to automatic review settings May 15, 2026 09:16

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

This PR changes local DARC dependency updates so LocalFactory creates a DependencyFileManager using the shared repo factory instead of passing the local git client directly.

Changes:

  • Updates LocalFactory to call the parameterless dependency file manager factory method.
  • Changes DependencyFileManagerFactory to hold an injected IGitRepoFactory.
  • Moves Arcade remote creation in Local.UpdateDependenciesAsync.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
src/Microsoft.DotNet.Darc/DarcLib/LocalFactory.cs Uses the new parameterless dependency file manager creation path.
src/Microsoft.DotNet.Darc/DarcLib/Local.cs Adjusts Arcade remote creation during dependency updates.
src/Microsoft.DotNet.Darc/DarcLib/Helpers/DependencyFileManagerFactory.cs Adds IGitRepoFactory as a factory dependency and updates creation overloads.

Comment thread src/Microsoft.DotNet.Darc/DarcLib/Local.cs Outdated
premun
premun previously approved these changes May 15, 2026
@adamzip
adamzip enabled auto-merge (squash) May 15, 2026 09:56
@premun
premun disabled auto-merge May 15, 2026 11:05
@premun

premun commented May 15, 2026

Copy link
Copy Markdown
Member

@adamzip how about the failing tests?

@adamzip

adamzip commented May 15, 2026

Copy link
Copy Markdown
Contributor Author

@adamzip how about the failing tests?

I thought the DI registry thing would've caused a test to fail for the MSBuild task we don't use anymore, but something is still failing when running the unit tests and i didn't understand what it is

@adamzip
adamzip enabled auto-merge (squash) May 18, 2026 09:04
@adamzip
adamzip merged commit 9f1b17e into dotnet:main May 18, 2026
6 of 9 checks passed
@dkurepa

dkurepa commented May 27, 2026

Copy link
Copy Markdown
Member

Think we should have added a test for this in https://github.com/dotnet/arcade-services/blob/main/eng/pipelines/templates/jobs/darc-and-api-tests.yml so it doesn't happen again

@premun

premun commented May 27, 2026

Copy link
Copy Markdown
Member

Agreed, we could run update-dependencies and update the local clone of arcade-services with some Arcade build

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.

4 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.