-
Couldn't load subscription status.
- Fork 2.1k
Copy streamformatter and progress packages from github.com/moby/moby #6570
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Copy streamformatter and progress packages from github.com/moby/moby #6570
Conversation
efb8d36 to
e3f671a
Compare
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
…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>
e3f671a to
736a5b4
Compare
There was a problem hiding this 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.
There was a problem hiding this 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.
- 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)