-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
improve warning message about version attribute #642
improve warning message about version attribute #642
Conversation
loader/loader.go
Outdated
@@ -89,7 +89,7 @@ var versionWarning []string | |||
|
|||
func (o *Options) warnObsoleteVersion(file string) { | |||
if !slices.Contains(versionWarning, file) { | |||
logrus.Warning(fmt.Sprintf("%s: `version` is obsolete", file)) | |||
logrus.Warning(fmt.Sprintf("%s: the attribute `version` is deprecated,it will be ignored, please remove it to avoid potential confusion", file)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
version is not deprecated. If we want to, need first to update https://github.com/compose-spec/compose-spec/blob/master/04-version-and-name.md.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks, updated
6092521
to
da57db2
Compare
loader/loader.go
Outdated
@@ -89,7 +89,7 @@ var versionWarning []string | |||
|
|||
func (o *Options) warnObsoleteVersion(file string) { | |||
if !slices.Contains(versionWarning, file) { | |||
logrus.Warning(fmt.Sprintf("%s: `version` is obsolete", file)) | |||
logrus.Warning(fmt.Sprintf("%s: the attribute `version` is obsolete,it will be ignored, please remove it to avoid potential confusion", file)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
obsolete,it => obsolete, it
da57db2
to
f602a84
Compare
Signed-off-by: Guillaume Lours <[email protected]>
f602a84
to
38722de
Compare
fix #641