Skip to content
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

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

Open
bep opened this issue Jan 14, 2025 · 0 comments
Open

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

bep opened this issue Jan 14, 2025 · 0 comments
Labels

Comments

@bep
Copy link
Member

bep commented Jan 14, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant