Skip to content

Make v0.141.0-DEV >= v0.141.0 #13260

Open
@bep

Description

@bep

The current behaviour is correct, I guess, but 1. Makes it harder to prepare templates for a release with breaking changes and 2. Also makes it a little hard for people who build from source.

So, to handle the resources.GetRemote vs try, I want to do something like this:

{{ if ge hugo.Version "v0.141.0" }}
{{ else }}
{{ end }}

That doesn't work, so I have to do:

{{ if lt hugo.Version "v0.140.2" }}
{{ else }}
{{ end }}

The above will not be entirely correct if we release v0.141.0 and then do a patch release as v0.140.3.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions