Skip to content

Comments

ci: remove docker-compose version top-level elements#6436

Merged
Xuanwo merged 1 commit intoapache:mainfrom
kingsword09:ci-remove-version
Jul 19, 2025
Merged

ci: remove docker-compose version top-level elements#6436
Xuanwo merged 1 commit intoapache:mainfrom
kingsword09:ci-remove-version

Conversation

@kingsword09
Copy link
Contributor

Which issue does this PR close?

Closes #.

Rationale for this change

According to the Compose Specification, the top-level version field in docker-compose files is obsolete and only kept for backward compatibility. Compose no longer relies on the version field to select a schema and will always use the most recent specification. Keeping the version field results in a warning message. Therefore, removing it aligns with the latest Compose specification.

What changes are included in this PR?

Removed the top-level ‎version field from all docker-compose YAML files.

Are there any user-facing changes?

@kingsword09 kingsword09 requested a review from Xuanwo as a code owner July 19, 2025 08:19
@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. releases-note/ci The PR modifies CI-related content or has a title that begins with "ci" labels Jul 19, 2025
@Xuanwo Xuanwo merged commit 722ab9e into apache:main Jul 19, 2025
132 checks passed
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Jul 19, 2025
@kingsword09 kingsword09 deleted the ci-remove-version branch July 19, 2025 10:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm This PR has been approved by a maintainer releases-note/ci The PR modifies CI-related content or has a title that begins with "ci" size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants