From b6798ee8676c48f86b0bd8581ea244f4be4ef3fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Tue, 20 Mar 2018 21:13:44 +0100 Subject: [PATCH] Bump some deprecations --- commands/hugo.go | 4 ++-- resource/resource.go | 4 ++-- source/fileInfo.go | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/commands/hugo.go b/commands/hugo.go index 769fb37e..60244b09 100644 --- a/commands/hugo.go +++ b/commands/hugo.go @@ -516,8 +516,8 @@ func (c *commandeer) setValueFromFlag(flags *flag.FlagSet, key string) { if _, deprecated := deprecatedFlags[strings.ToLower(key)]; deprecated { msg := fmt.Sprintf(`Set "%s = true" in your config.toml. If you need to set this configuration value from the command line, set it via an OS environment variable: "HUGO_%s=true hugo"`, key, strings.ToUpper(key)) - // Remove in Hugo 0.37 - helpers.Deprecated("hugo", "--"+key+" flag", msg, false) + // Remove in Hugo 0.38 + helpers.Deprecated("hugo", "--"+key+" flag", msg, true) } f := flags.Lookup(key) c.Set(key, f.Value.String()) diff --git a/resource/resource.go b/resource/resource.go index 8627d93c..2732f8b3 100644 --- a/resource/resource.go +++ b/resource/resource.go @@ -116,7 +116,7 @@ Some examples: // "logo" will match logo.png. It returns nil of none found. // In potential ambiguous situations, combine it with ByType. func (r Resources) GetByPrefix(prefix string) Resource { - helpers.Deprecated("Resources", "GetByPrefix", prefixDeprecatedMsg, false) + helpers.Deprecated("Resources", "GetByPrefix", prefixDeprecatedMsg, true) prefix = strings.ToLower(prefix) for _, resource := range r { if matchesPrefix(resource, prefix) { @@ -129,7 +129,7 @@ func (r Resources) GetByPrefix(prefix string) Resource { // ByPrefix gets all resources matching the given base filename prefix, e.g // "logo" will match logo.png. func (r Resources) ByPrefix(prefix string) Resources { - helpers.Deprecated("Resources", "ByPrefix", prefixDeprecatedMsg, false) + helpers.Deprecated("Resources", "ByPrefix", prefixDeprecatedMsg, true) var matches Resources prefix = strings.ToLower(prefix) for _, resource := range r { diff --git a/source/fileInfo.go b/source/fileInfo.go index eb7015aa..1cad1c4e 100644 --- a/source/fileInfo.go +++ b/source/fileInfo.go @@ -133,8 +133,8 @@ func (fi *FileInfo) FileInfo() os.FileInfo { } func (fi *FileInfo) Bytes() []byte { - // Remove in Hugo 0.34 - helpers.Deprecated("File", "Bytes", "", false) + // Remove in Hugo 0.38 + helpers.Deprecated("File", "Bytes", "", true) return []byte("") }