Skip to content

refactor: unify the progress bar management#119

Merged
gaius-qi merged 1 commit intomainfrom
refactor/progress-bar
Mar 12, 2025
Merged

refactor: unify the progress bar management#119
gaius-qi merged 1 commit intomainfrom
refactor/progress-bar

Conversation

@chlins
Copy link
Member

@chlins chlins commented Mar 12, 2025

This pull request introduces several changes to the modctl project, including dependency updates, the addition of a new progress bar feature, and modifications to the build process to support progress tracking. The most important changes are summarized below:

Dependency Updates:

  • Removed several dependencies from go.mod including github.com/chelnak/ysmrr, github.com/fatih/color, github.com/mattn/go-colorable, and github.com/mattn/go-isatty [1] [2] [3].
  • Updated golang.org/x/net to version v0.34.0.

New Progress Bar Feature:

  • Added a new ProgressBar implementation in internal/pb/pb.go to provide progress tracking for various build stages.

Build Process Enhancements:

  • Integrated the new ProgressBar into the build process in pkg/backend/build.go to track progress for building layers, config, and manifest [1] [2].
  • Modified the Builder interface and its implementation in pkg/backend/build/builder.go to accept hooks for progress tracking [1] [2] [3].

Test Adjustments:

  • Updated tests in pkg/backend/build/builder_test.go to accommodate changes in the Builder interface and ensure proper handling of progress tracking hooks [1] [2] [3].

These changes collectively improve the build process by providing real-time progress updates and ensuring better dependency management.

@chlins chlins force-pushed the refactor/progress-bar branch from 8a572d0 to 7115d86 Compare March 12, 2025 04:22
@chlins chlins added the enhancement New feature or request label Mar 12, 2025
@chlins chlins force-pushed the refactor/progress-bar branch from 7115d86 to 0bc013d Compare March 12, 2025 04:26
@chlins chlins force-pushed the refactor/progress-bar branch from 0bc013d to a7917c4 Compare March 12, 2025 07:10
Signed-off-by: chlins <chlins.zhang@gmail.com>
@chlins chlins force-pushed the refactor/progress-bar branch from a7917c4 to 56045dd Compare March 12, 2025 07:15
Copy link
Member

@gaius-qi gaius-qi left a comment

Choose a reason for hiding this comment

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

LGTM

@gaius-qi gaius-qi merged commit 962d98f into main Mar 12, 2025
5 checks passed
@gaius-qi gaius-qi deleted the refactor/progress-bar branch March 12, 2025 07:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants