From 93341af02e6e0798a41d0de4dac17af102fcbdd8 Mon Sep 17 00:00:00 2001 From: Mark Dumay <61946753+markdumay@users.noreply.github.com> Date: Sun, 1 Mar 2026 06:41:18 +0100 Subject: [PATCH] feat!: bump to v4 and declare mod-utils v5 as formal dependency - Change module path from v3 to v4 (breaking: consumers must update import paths) - Add github.com/gethinode/mod-utils/v5 v5.13.0 as a required dependency in go.mod - Add mod-utils/v5 [[module.imports]] to config.toml so Hugo resolves GetThemeIcon.html and other v5 partials automatically - Update exampleSite to use mod-flexsearch/v4 import and replacement paths BREAKING CHANGE: module path changed to github.com/gethinode/mod-flexsearch/v4; requires mod-utils v5 (Hinode v2+). For Hinode v1.x use v3.3.3 instead. Co-Authored-By: Claude Sonnet 4.6 --- config.toml | 2 ++ exampleSite/go.mod | 2 +- exampleSite/go.sum | 2 ++ exampleSite/hugo.toml | 4 ++-- go.mod | 7 +++++-- go.sum | 4 ++++ 6 files changed, 16 insertions(+), 5 deletions(-) diff --git a/config.toml b/config.toml index ba47a95..a98fbf4 100644 --- a/config.toml +++ b/config.toml @@ -3,6 +3,8 @@ extended = true min = "0.146.0" max = "" + [[module.imports]] + path = "github.com/gethinode/mod-utils/v5" [[module.imports]] path = "github.com/nextapps-de/flexsearch" [[module.imports.mounts]] diff --git a/exampleSite/go.mod b/exampleSite/go.mod index 78a1d89..2ad3203 100644 --- a/exampleSite/go.mod +++ b/exampleSite/go.mod @@ -2,4 +2,4 @@ module github.com/gethinode/mod-flexsearch-test go 1.19 -require github.com/gethinode/mod-utils/v5 v5.10.0 // indirect +require github.com/gethinode/mod-utils/v5 v5.13.0 // indirect diff --git a/exampleSite/go.sum b/exampleSite/go.sum index 9d22af7..7e5fec8 100644 --- a/exampleSite/go.sum +++ b/exampleSite/go.sum @@ -1,2 +1,4 @@ github.com/gethinode/mod-utils/v5 v5.10.0 h1:NlofAfa1YILV9pwS8vMkEwVUdrnKCoIlVwJPm3+UVGs= github.com/gethinode/mod-utils/v5 v5.10.0/go.mod h1:PwQN4oOjA6k/vet11JueJ9asZMgL0DBa3jyS9tPkBWU= +github.com/gethinode/mod-utils/v5 v5.13.0 h1:ztkE1REey94x36UdlZ7yeitpIQid/BcZQh+wtxBTSQ8= +github.com/gethinode/mod-utils/v5 v5.13.0/go.mod h1:PwQN4oOjA6k/vet11JueJ9asZMgL0DBa3jyS9tPkBWU= diff --git a/exampleSite/hugo.toml b/exampleSite/hugo.toml index 974c483..94c5598 100644 --- a/exampleSite/hugo.toml +++ b/exampleSite/hugo.toml @@ -3,7 +3,7 @@ languageCode = 'en-us' title = 'Test site for mod-flexsearch' [module] - replacements = 'github.com/gethinode/mod-flexsearch/v3 -> ../..' + replacements = 'github.com/gethinode/mod-flexsearch/v4 -> ../..' [[module.mounts]] source = "assets" target = "assets" @@ -19,7 +19,7 @@ title = 'Test site for mod-flexsearch' [[module.imports]] path = "github.com/gethinode/mod-utils/v5" [[module.imports]] - path = "github.com/gethinode/mod-flexsearch/v3" + path = "github.com/gethinode/mod-flexsearch/v4" [[module.imports.mounts]] source = "assets" target = "assets" diff --git a/go.mod b/go.mod index cd4f72f..08e003b 100644 --- a/go.mod +++ b/go.mod @@ -1,5 +1,8 @@ -module github.com/gethinode/mod-flexsearch/v3 +module github.com/gethinode/mod-flexsearch/v4 go 1.19 -require github.com/nextapps-de/flexsearch v0.0.0-20250907103239-defb38b083f0 // indirect +require ( + github.com/gethinode/mod-utils/v5 v5.13.0 // indirect + github.com/nextapps-de/flexsearch v0.0.0-20250907103239-defb38b083f0 // indirect +) diff --git a/go.sum b/go.sum index 892eadc..c82547c 100644 --- a/go.sum +++ b/go.sum @@ -1,3 +1,7 @@ +github.com/gethinode/mod-utils/v5 v5.10.0 h1:NlofAfa1YILV9pwS8vMkEwVUdrnKCoIlVwJPm3+UVGs= +github.com/gethinode/mod-utils/v5 v5.10.0/go.mod h1:PwQN4oOjA6k/vet11JueJ9asZMgL0DBa3jyS9tPkBWU= +github.com/gethinode/mod-utils/v5 v5.13.0 h1:ztkE1REey94x36UdlZ7yeitpIQid/BcZQh+wtxBTSQ8= +github.com/gethinode/mod-utils/v5 v5.13.0/go.mod h1:PwQN4oOjA6k/vet11JueJ9asZMgL0DBa3jyS9tPkBWU= github.com/nextapps-de/flexsearch v0.0.0-20230711092928-1243fd883ec3 h1:H/qVR5O4BXjRjD+5PZB+r4ug2BSJ2Of4RtwOntd+OKo= github.com/nextapps-de/flexsearch v0.0.0-20230711092928-1243fd883ec3/go.mod h1:5GdMfPAXzbA2gXBqTjC6l27kioSYzHlqDMh0+wyx7sU= github.com/nextapps-de/flexsearch v0.0.0-20240108021025-afd75f742f22 h1:re7L8FxbXQpnX8BgzkdUnDpsUmloGNyLmiy2ZCln8pg=