(ctx context.Context, args command.DependencyArgs)
| 556 | } |
| 557 | |
| 558 | func (c *commandHandler) GoGetModule(ctx context.Context, args command.DependencyArgs) error { |
| 559 | return c.run(ctx, commandConfig{ |
| 560 | progress: "Running go get", |
| 561 | forURI: args.URI, |
| 562 | }, func(ctx context.Context, deps commandDeps) error { |
| 563 | return c.s.runGoModUpdateCommands(ctx, deps.snapshot, args.URI, func(invoke func(...string) (*bytes.Buffer, error)) error { |
| 564 | return runGoGetModule(invoke, args.AddRequire, args.GoCmdArgs) |
| 565 | }) |
| 566 | }) |
| 567 | } |
| 568 | |
| 569 | // TODO(rFindley): UpdateGoSum, Tidy, and Vendor could probably all be one command. |
| 570 | func (c *commandHandler) UpdateGoSum(ctx context.Context, args command.URIArgs) error { |
no test coverage detected