arcade-services icon indicating copy to clipboard operation
arcade-services copied to clipboard

A way to do darc update-dependencies locally as subscriptions would

Open nguerrera opened this issue 6 years ago • 4 comments

Today, with darc update-dependencies I can apply updates locally from a channel. However, there are situations where we might have different dependencies from different channels, so there should be a way to update to update locally to match what subscriptions would do via maestro.

nguerrera avatar Oct 29 '19 19:10 nguerrera

@nguerrera What do you think your expected inputs would be here? For example, let's say you have a git repo like core-sdk, you check out a new branch for your updated dependencies. What would you expect that you'd have to provide darc to get the desired behavior? Specifically, it needs to figure out what set of subscriptions it should apply to your local branch.

Would you expect it to try and infer this info?

  • Look at the remotes you have locally to try and figure out what repo you're running the command in? What if you have remotes matching multiple subscriptions, like you would if you had an internal and a public remote
  • Find a parent branch of the current branch that matches some subscriptions. What if there are multiple parents (which would happen at certain times)?

Or would you expect to just enter: --repo https://github.com/dotnet/core-sdk --branch master

mmitche avatar Nov 15 '19 19:11 mmitche

These are great questions. When I wrote the issue, I hadn't really thought about the UX. I think I might have naively said that I expected it to just infer the right thing. But as I read about what that would entail, it doesn't seem feasible.

Or would you expect to just enter: --repo https://github.com/dotnet/core-sdk --branch master

I think this would be more than good enough. If it had the pattern matching of other darc commands, I'd type --repo core-sdk --branch master, which is perfectly wrist friendly. and intuitive. This has my vote.

nguerrera avatar Nov 15 '19 21:11 nguerrera

Thanks for the feedback!

mmitche avatar Nov 15 '19 22:11 mmitche

Adding to the dependency epic for triage

markwilkie avatar Mar 27 '20 15:03 markwilkie

opened up this issue with the GH copilot feature https://github.com/dotnet/arcade-services/issues/5342

dkurepa avatar Oct 07 '25 09:10 dkurepa