Skip to content

DNM - run CI with my review suggestions - #6205

Closed
thaJeztah wants to merge 2 commits into
docker:masterfrom
thaJeztah:try_update
Closed

DNM - run CI with my review suggestions#6205
thaJeztah wants to merge 2 commits into
docker:masterfrom
thaJeztah:try_update

Conversation

@thaJeztah

Copy link
Copy Markdown
Member

Mewsenand others added 2 commits July 23, 2025 22:09
Moves ParseVolume() to a new internal package to remove the dependency
on cli/compose/loader in cli/command/container/opts.go
Signed-off-by: Michael Tews <michael@tews.dev>
- rename the package to "volumespec" to reuse the name of the package
as part of the name (parsevolume.ParseVolume() -> volumespec.Parse())
- move the related compose types to the internal package as well,
and rename them to be more generic (not associated with "compose");
- ServiceVolumeConfig -> VolumeConfig
- ServiceVolumeBind -> BindOpts
- ServiceVolumeVolume -> VolumeOpts
- ServiceVolumeImage -> ImageOpts
- ServiceVolumeTmpfs -> TmpFsOpts
- ServiceVolumeCluster -> ClusterOpts
- alias the internal types inside cli/compose/types to keep backward
compatibility (for any external consumers); even though the implementation
is internal, Go allows aliasing types to use them externally.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@codecov-commenter

codecov-commenter commented Jul 23, 2025

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 80.00000% with 2 lines in your changes missing coverage. Please review.

Files with missing linesPatch %Lines
cli/compose/loader/loader.go33.33%2 Missing ⚠️

📢 Thoughts on this report? Let us know!

@thaJeztah
thaJeztah deleted the try_update branch July 25, 2025 14:54
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@thaJeztah@codecov-commenter@Mewsen