compose-spec / compose-go

Reference library for parsing and loading Compose YAML files
https://compose-spec.io
Apache License 2.0
355 stars 112 forks source link

inform rather than warn on version obsolescence #640

Closed rseymour closed 4 months ago

rseymour commented 4 months ago

docker compose warning on the version being obsolete has caused a lot of grief. Here is one simple solution to the issue.

ndeloof commented 4 months ago

docker compose warning on the version being obsolete has caused a lot of grief

no issue has been reported regarding this, so I don't think so

Here is one simple solution to the issue.

:-1 this would basically let user continue setting version and expect this has some effect, which brings confusion. Compose spec was announced in 2020 with version made obsolete, it's time to move forward

glours commented 4 months ago

I agree with @ndeloof, if we keep this as a simple message users will continue to use it and being confused when they will open issues about the file version v2 vs v3, and even sometimes with the Compose binary version itself. A warning message make it clear, it supposes you'll take action on your side if you don't want to be bother by the message again