Skip to content

Conversation

@austinvazquez
Copy link
Contributor

- What I did

Copied github.com/moby/moby/api/pkg/streamformatter and github.com/moby/moby/api/pkg/progress to internal packages.

- How I did it

- How to verify it

- Human readable description for the release notes

- A picture of a cute animal (not mandatory but encouraged)

@codecov-commenter
Copy link

codecov-commenter commented Oct 20, 2025

Codecov Report

❌ Patch coverage is 60.00000% with 4 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
internal/streamformatter/streamformatter.go 60.00% 2 Missing and 2 partials ⚠️

📢 Thoughts on this report? Let us know!

austinvazquez and others added 2 commits October 20, 2025 17:44
…tter

Co-authored-by: Claude <noreply@anthropic.com>
Signed-off-by: Austin Vazquez <austin.vazquez@docker.com>
Co-authored-by: Claude <noreply@anthropic.com>
Signed-off-by: Austin Vazquez <austin.vazquez@docker.com>
@austinvazquez austinvazquez force-pushed the refactor-moby-api-pkg-usage branch from e3f671a to 736a5b4 Compare October 20, 2025 22:44
@austinvazquez austinvazquez marked this pull request as ready for review October 20, 2025 22:53
Copy link

Copilot AI left a comment

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 removes the dependency on github.com/moby/moby/api/pkg/streamformatter and github.com/moby/moby/api/pkg/progress by copying these packages into internal packages within the CLI repository. This change promotes golang.org/x/time from an indirect to a direct dependency.

Key changes:

  • Copied streamformatter and progress packages to internal/
  • Updated all import paths across the codebase to reference the new internal packages
  • Promoted golang.org/x/time to direct dependency in vendor.mod

Reviewed Changes

Copilot reviewed 10 out of 14 changed files in this pull request and generated no comments.

Show a summary per file
File Description
vendor.mod Promoted golang.org/x/time from indirect to direct dependency
internal/streamformatter/streamformatter.go Added internal copy with refactored parameter names and receiver methods
internal/streamformatter/streamformatter_test.go Added comprehensive test coverage for the copied package
internal/progress/progressreader_test.go Added test coverage for progress reader functionality
cli/command/swarm/progress/root_rotation.go Updated imports to reference internal packages
cli/command/service/progress/progress.go Updated imports to reference internal packages
cli/command/service/progress/progress_test.go Updated imports to reference internal packages
cli/command/image/build/context.go Updated imports to reference internal packages
cli/command/image/build.go Updated imports to reference internal packages
cli/command/container/run_test.go Updated imports to reference internal packages

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copy link
Collaborator

@cpuguy83 cpuguy83 left a comment

Choose a reason for hiding this comment

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

This LGTM.
Its a tiny bit of code that really doesn't belong in the moby API pacakge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants