pg.ddx.io  GitHub: pgjdbc/pgjdbc (issues + PRs as email threads)  
help / color / mirror / Atom feed
From: vlsi (@vlsi) <noreply+vlsi@github.com>
To: pgjdbc/pgjdbc <noreply+pgjdbc-pgjdbc@github.com>
Subject: Re: [pgjdbc/pgjdbc] PR #4088: docs: structure-only rework (file moves, Hugo skeleton, release pipeline)
Date: Thu, 28 May 2026 13:06:39 +0000
Message-ID: <gh-pgjdbc-pgjdbc-4088-c4564249687@github.com> (raw)
In-Reply-To: <gh-pgjdbc-pgjdbc-4088@github.com>
References: <gh-pgjdbc-pgjdbc-4088@github.com>

This is a Hugo deprecation rather than a one-off bug, and it raises a process question.

Hugo 0.158.0 deprecated site.Language.LanguageCode and shipped its replacement site.Language.Locale in the same release. My local Hugo (0.161) warns on the old field and points at .Locale, so I switched alias.html over. Your Hugo is older than 0.158, so .Locale does not exist there and the template fails. We have the same pattern with hugo.Data (added 0.156.0), which the release-pipeline templates already use.

How do we want to handle Hugo deprecations in general? Hugo ships the replacement and the deprecation together, then removes the old API a few releases later, so pinning to the pre-deprecation form only postpones the break. My preference: track the current API and require a recent Hugo, rather than keep fallbacks we then have to test on old versions. The cost is that contributors need to update Hugo more often

Concretely:

* Kept .Locale; did not revert to the deprecated .LanguageCode.
* The Gradle check only tested that hugo was on PATH, never the version, which is how your older Hugo reached a template error. It now parses hugo version, requires extended Hugo 0.161 or newer, and fails early with a clear message naming the version it found. That is the single enforcement point; module.hugoVersion.min in the config only warns and lets the build proceed to the same template error, so it is not worth a second copy of the version number.

Does that trade-off work for you?

view thread (26+ messages)  latest in thread

Message-ID: <gh-pgjdbc-pgjdbc-4088-c4564249687@github.com>
Permalink:  ../gh-pgjdbc-pgjdbc-4088-c4564249687@github.com/

 · 


This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox