hugo:release-0.102.2

Last commit made on 2022-08-31
Get this branch:
git clone -b release-0.102.2 https://git.launchpad.net/hugo

Branch merges

Branch information

Name:
release-0.102.2
Repository:
lp:hugo

Recent commits

6d84047... by hugoreleaser <email address hidden>

releaser: Prepare repository for 0.103.0-DEV

[ci skip]

f104f7b... by hugoreleaser <email address hidden>

releaser: Bump versions for release of 0.102.2

[ci skip]

5046a6c... by Joe Mooring <email address hidden>

deps: Update github.com/tdewolff/minify/v2 v2.12.0 => v2.12.1

Fixes #10230

160a067... by Anthony Fok

snap: Use "snapcraftctl set-grade"

This, together with 'snapcraftctl set-version", negates the need to
modify snap/snapcraft.yaml upon each release, so the corresponding code
is removed from releaser/releaser.go.

Also, vendorInfo is extended to include the snap version number.

See #10225

e0ba1a8... by Anthony Fok

snap: Use "snapcraftctl set-version"

This allows the use of "git describe --tags" to recognize lightweight
version tags, and the removal of initial "v" in the hugo snap version.

See #10225

7b49c56... by Anthony Fok

snap: Make external dependencies actually work

Git:
 - Set GIT_EXEC_PATH and include usr/lib/git-core so that git can find the
   git-remote-https helper (needed by e.g. "go mod download").

Go:
 - Put Go in its own snap part, and use stage-snaps instead of build-snaps
   so that it is included in the final snap.
 - Set GOCACHE to a writable directory. (In a previous commit,
   HOME is set to $SNAP_REAL_HOME which is unwritable.)

Hugo:
 - Patch config/security/securityConfig.go "[security.exec] osEnv" whitelist
   (during snap build) so that external dependencies can use the required
   environment variables to run properly from within the snap.

Asciidoctor:
 - Replace shebang line in asciidoctor so it can find the ruby executable.
 - Set RUBYLIB so that Ruby can find its libraries.
   Caveat/TODO: The Ruby version is hardcoded in our custom RUBYLIB.

Embedded Dart Sass:
 - Download from GitHub and install it, for amd64 and arm64 only.

Node.js:
 - Remove my incomplete include list so that npx is actually installed.
 - Set npm_config_{cache,init_module,userconfig} to writable locations.

Pandoc:
 - Set pandoc_datadir so that Pandoc can find its data files.

rst2html:
 - Install python3-docutils package for rst2html, rst2html5, etc.
 - Set PYTHONHOME so that Python can find its libraries.

Note that asciidoctor, pandoc and rst2html are not in Hugo’s default
"[security.exec] allow" whitelist, and the snap package does not change
that default, so they still needed to be whitelisted manually in
config.toml if necessary by the end user.

Special thanks to Joe Mooring (@jmooring) for meticulously diagnosing
the issue and providing a comprehensive test repository at
https://github.com/jmooring/hugo-snap-test without which I would not
have been able to understand and resolve the issue.

Fixes #9078

dffca57... by Bjørn Erik Pedersen

release: Add the releaser commits to the ignore list

79932e7... by Bjørn Erik Pedersen

release: Fix the Deb archives

Fixes #10220

9eb9b70... by hugoreleaser <email address hidden>

releaser: Prepare repository for 0.103.0-DEV

[ci skip]

0ff4a93... by hugoreleaser <email address hidden>

releaser: Bump versions for release of 0.102.0

[ci skip]