Skip to content

Conversation

@htoyoda18
Copy link
Contributor

What I did

Extracted hardcoded Docker Engine API version strings into a new pkg/compose/api_versions.go file with well-documented constants.

Changes:

  • Created api_versions.go with constants: APIVersion144, APIVersion148, APIVersion149, DockerEngineV25, DockerEngineV28, DockerEngineV28_1, BuildxMinVersion
  • Replaced magic strings in 6 files (13 locations total)

Benefits:

  • Centralized version management
  • Better code readability (APIVersion144 vs "1.44")
  • Each constant documents its corresponding features

Related issue

N/A

(not mandatory) A picture of a cute animal, if possible in relation to what you did

@htoyoda18 htoyoda18 marked this pull request as ready for review January 10, 2026 16:24
@htoyoda18 htoyoda18 requested a review from a team as a code owner January 10, 2026 16:24
@htoyoda18 htoyoda18 requested review from glours and ndeloof January 10, 2026 16:24
@htoyoda18 htoyoda18 force-pushed the refactor/api-version-constants branch from 090efc9 to 33c9542 Compare January 11, 2026 04:24
Sign up for free to 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.

1 participant