MCPcopy Create free account
hub / github.com/compose-spec/compose-go / warnObsoleteVersion

Method warnObsoleteVersion

loader/loader.go:102–107  ·  view source on GitHub ↗
(file string)

Source from the content-addressed store, hash-verified

100var versionWarning []string
101
102func (o *Options) warnObsoleteVersion(file string) {
103 if !slices.Contains(versionWarning, file) {
104 logrus.Warning(fmt.Sprintf("%s: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion", file))
105 }
106 versionWarning = append(versionWarning, file)
107}
108
109type Listener = func(event string, metadata map[string]any)
110

Callers 1

loadYamlFileFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected